开发者

how convert base64 to json in android?

i want to get data from a remote server, t开发者_JAVA技巧he return data is base64 encoded in json string. i need to decode Base64 encoded data to fetch the json array. is any suggestion? thanx


You can use one of the decode methods of the Base64 class.

Something like:

String decoded = new String(Base64.decode(your_base64_input_data));

It's not quite clear from your question if/how JSON gets mixed in, so can't really help with that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜