0

I am trying to decode the bye array of a PNG file in base64 and then convert it into Binary using the javascript,in android mobile app.

var binary = escape(atob(byteDataFromServer.split(',')[1]));

Error

"atob' failed the string to be decoded contains characters outside of the latin1 range"

2
  • Are you using the native implementation of atob or a polyfill? Also, this might help: stackoverflow.com/a/9786592/741043 Commented May 29, 2014 at 18:18
  • native implementation, am already getting the byte as base64 @KerriShotts Commented May 29, 2014 at 18:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.