How to print base64 with APD and Zebra GX420t

G Guillermo James 3 years 7 months ago
7 1 0

Dear All
How we can print an image saved as base64 in our Rhoelement App using APD. Printer is a Zebra GX 420t.

Thanks in advance.
Guillermo

Please Register or Login to post a reply

1 Replies

A Adel Sari

You can save your data uri (base64 string) to a file, like
File.open('your_image.png', 'wb') do |f|  f.write(Base64.decode64(base_64_encoded_data))end

Then use PrinterZebra Api's function PrintImageFromFile('your_image.png') to send it to your printer.

CONTACT
Can’t find what you’re looking for?