LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Base64 encode/decode function

Here's some code I put together a couple years ago based off of some info provided in a forum post I found on this site. It doesn't get it to a LV image, but it gets a binary JPEG string into an IMAQ image.

 

Use the Init IMAQ Image for JPEG.vi to create the image reference and then wire the output of that to the JPEG binary to IMAQ Image.vi along with the JPEG binary data (i.e., the decoded base64 string).

 

It should be pretty trivial to go to a LV image from there, but I've not looked into it because I never needed to do it.

 

Init IMAQ Image for JPEG.png

JPEG binary to IMAQ Image.png

Download All
Message 11 of 13
(1,060 Views)

 

works like charm

 

web-base64-jpg_to-lv-image.png

0 Kudos
Message 12 of 13
(1,033 Views)

@alexderjuengere wrote:

 

works like charm


And as a bonus the technique also works for bmp, emf, wmf, icons, tiff and gif.

0 Kudos
Message 13 of 13
(1,023 Views)