Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
string objects dont have encoding you must encode bytes from this string, for exxample: byte[] data = Base64.encodeBase64(str.getBytes()); String encoded = new String(data);
12th Jan 2017, 10:46 AM
Baqar Gogia
Baqar Gogia - avatar