开发者

how convert base64 to json in android?

开发者 https://www.devze.com 2023-03-12 06:32 出处:网络
i want to get data from a remote server, t开发者_JAVA技巧he return data is base64 encoded in json string.

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

精彩评论

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