DoubleG_11 DoubleG_11 - 2 years ago 163
Android Question

How to use base 64 data with android?

I try to debug an android application but I need help to decode data.

The Webview of the application do an http request and receive base64 data.

How can I decode data ?

Answer Source

That is Base64 encoded data. You can decode it with the atob function. Assuming encodedData holds the Base64 encoded data:

var decodedData = window.atob(encodedData);

atob is supported by all major browsers;

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download