I'm trying to retrieve the base64 string from a barcode that I retrieve from google and that I display on an image control like so (image property):
"https://chart.googleapis.com/chart?cht=qr&chl=" & varBarcode & "&chs=200x200"
Then, I set the text property of a label control to the image control that displays the barcode. However, it only returns the above string instead of base64 text (The reason for this is that I need the base64 string to generate a PDF report via Powerautomate later).
In contrast, this procedure works for images taken by the camera control.
Is there a way to achieve this without involving Powerautomate?
Solved! Go to Solution.
Hi @TJO ,
How is PDF generated? Is it converted from HTML?
I don't think you have to convert the barcode to base64 format, since the Barcode image is generated from Google API, and it can also be applied in HTML script via below. You only need to pass the varBarcode to the flow.
"<img src=https://chart.googleapis.com/chart?cht=qr&chl=" & VarBarcode &"&chs=200x200 alt=Barcode>"
Hope this helps.
@v-siky-msft Thank you for your reply.
In fact, I apply it to HTML and then convert it to PDF. However, the Image is then broken in the PDF file.
For the camera Images I do the same...just that I apply the base64 to the HTML and the pictures are visible in the PDF.
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights