Okay, I know how to do it in C#.
It is simple as
Convert.ToBase64String(byte[])
and Convert.FromBase64String(string) to get byte[] back.
How can I do this in Java?
Okay, I know how to do it in C#.
It is simple as
Convert.ToBase64String(byte[])
and Convert.FromBase64String(string) to get byte[] back.
How can I do this in Java?
If all you're looking for is base64 encoding try using commons codec.
May I suggest you to search the big internet ? It could lead you to Base64 public domain encoder/decoder (which (contrary to sun.misc class, works on all VMs)