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.
1 Replies
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.