cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver II
Resolver II

Retrive base64 string from barcode generated from chart.googleapis.com

Hi folks,

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?

 

Cheers

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @TJO ,

 

 

Yes, you are right. PDF does not recognize HTTPS. But, I believe you can find the answer from @h-nagao in this thread.

Upload the QR code to OneDrive for business using this flow. and then follow the Shane's video to generate the PDF from HTML.

SaveQR flow.png

 

Hope this helps.

Sik

 

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

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.

Sik

Highlighted

@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.

 

 

Highlighted
Community Support
Community Support

Hi @TJO ,

 

 

Yes, you are right. PDF does not recognize HTTPS. But, I believe you can find the answer from @h-nagao in this thread.

Upload the QR code to OneDrive for business using this flow. and then follow the Shane's video to generate the PDF from HTML.

SaveQR flow.png

 

Hope this helps.

Sik

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (11,511)