web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Retrive base64 string ...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 230

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

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    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

  • TJO Profile Picture
    230 on at

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

     

     

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard