11-15-2018 08:07 AM
How to convert image (Such as .png/.jpg/.bmp/.mp3) file to base64 strings by LabVIEW? Because base64 is one very popular format on the web/internet application. Many online cloud APIs need upload the image file with base64 string through HTTP/POST method. Such as the online OCR API, TTS API... Thanks in advance.
Home--colinzhang.net: My Blog
11-15-2018 08:17 AM
11-15-2018 08:18 AM
Have you tried typing "LabVIEW base64" into Google or another search engine? There are numerous "hits" ...
Bob Schor
11-22-2018 09:15 PM
Sorry, maybe confuse you and also other persons.
The concerns are both the "image" and "base64". I have tried to use the "Read from Text File " and "Read from Binary File" Function to read the image file, and then convert to the Base64 strings through the Utility VIs which designed by Christian. But finally this method is not successful for my application. My application is used one online OCR API to recognize the strings (letters, numbers, Chinese characters etc) of the pictures, thousands of pictures totally.
Of course, this don't mean the Base64 utility is incorrect, but some other issues. Finally I use another way to complete this task---Use the Python to complete the images-to-Base64 conversion.
Thanks for your reply.
Home--colinzhang.net: My Blog