How can I set Player skin by base64 image?

sponge 8.0

ServerPlayer p;

String base64;

p.setSkin(base64);

How can I set Player skin by base64 image ?

Please help me.

I thought all skins needed to be registered with mojang servers and the only way to apply them is to use the skin licence

I know there are plugins out there that allow the uploading of custom skins, but they will typically use a service that registers that skin image to a player and then give you a licence id (note that the licence id does not expire after the player has removed that skin).

I cant think of any of the service. But im sure a quick google search will give you that