Encode and decode html with base64 android -
this question has reply here:
base 64 encode , decode illustration code 3 answersi new android , wants encode , decode html page using base64 , save html page in memory card.if 1 can help me great back upwards me
have @ android's base64
class. documentation here:
it has named methods can utilize easily:
encode(byte[], int) decode(string, int)for more information, there no way can improve on first-class jon skeet in link.
base 64 encode , decode illustration codehere illustration code:
// sending side byte[] info = text.getbytes("utf-8"); string base64 = base64.encodetostring(data, base64.default); // receiving side byte[] info = base64.decode(base64, base64.default); string text = new string(data, "utf-8");
android
No comments:
Post a Comment