Convert Image in base64 format to hexadecimal ASCII value - Javascript

I am capturing the signature of the user with a canvas element, this canvas generates an image in base64. Well that signature needs to be printed in a zebra printer, and to achieve that the ZPL language that the printer understands needs the image to be converted to hexadecimal ASCII thing that i can not accomplish.

Anonymous (not verified)
Hi, Have you tried the btoa()

Hi, Have you tried the btoa() function to MIME encode the data?  Base64 encoding and decoding - Web APIs | MDN

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Victor Okoye
Following up

Did you find out the answer to this, or does anyone know to how to comvert b64 to ZPL in Java/Android

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments