This topic was automatically generated from Slack. You can find the original thread here.
Eyal Gershon : Hey guys im sorry if this is a newbie question as my node knowledge is limited. Does anyone have any experience generating EAN-13 barcodes from a string which results in a base64 encoded image or binary data?
I was looking at https://github.com/jshor/symbology but had an issue trying to make it work in Pipedream.
Nghia Nguyen : There’s some sample code down at the bottom, but the idea would be to generate the barcode on node-canvas and save/export the image if you want the barcode as a file.
Nghia Nguyen : you can use that skeleton to create the service you’re looking to create. Maybe a pipedream endpoint gets triggered with a bunch of EAN strings you want to generate barcodes for, then you’d just loop over the code and pump out those blocks, and then do what ya want with them. If you want the base64 encoded strings you can take the string-serialized svgNode that is returned and process it through a window.btoa(stringSerializedSvgNode)