Does Rocket / Universe support converting a base64 string to a .PNG file and routing that file item to a label printer?
Any advice or direction would be appreciated.
------------------------------
Jim Scott
Senior Programmer/Analyst
Gardens Alive
Lawrenceburg IN US
------------------------------
Hi Jim - I did something similar converting a digest to PDF using Python which worked out pretty well. Here is one I found googling that might work
https://www.codespeedy.com/convert-base64-string-to-image-in-python/
------------------------------
Karl Pozmann
Karl Pozmann
Akron OH US
------------------------------
Does Rocket / Universe support converting a base64 string to a .PNG file and routing that file item to a label printer?
Any advice or direction would be appreciated.
------------------------------
Jim Scott
Senior Programmer/Analyst
Gardens Alive
Lawrenceburg IN US
------------------------------
If you have the base64 string in a Universe variable you can use the ENCODE function to get the original PNG byte array in to another variable, then use WRITEBLK to write the byte array to a Unix file, then use a Unix command to send that file to the printer.
------------------------------
John Green
Head of Technology
Ultradata Australia Pty Ltd
Malvern East VIC AU
------------------------------