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.
精彩评论