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 / Get web resource actio...
Power Apps
Answered

Get web resource action / returned data to base64

(0) ShareShare
ReportReport
Posted on by 34

Hi all,

 

I'm struggling to convert the returned data from an HTTP Get Web Resource action to base64 for use later in creating a PDF from HTML.

 

The objective is to replace the src URL in the img link of a rich text column with the base64 content so it will render correctly in the final pdf.

 

So I'm getting the image from the blob storage using the Get web resource action (see next).

 

innes_NZ_0-1713662930660.png

This call returns content that I understood to be binary (see the sample next). I want to convert this to base64 and include it in the HTML output.

 

innes_NZ_1-1713663252235.png

Since there is no binarytoBase64 function in power automate I've followed the recommended approach of setting a string variable with outputs('Get_web_resource')?['body/$content'] which is supposed to convert to base64 automatically.

 

However, this doesn't give me a valid base64 version of this image.

 

I'm missing something.  Any suggestions would be very welcome.

 

Cheers, Innes (NZ)

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    Hi @innes_NZ ,

    You are welcome to post here, but this seems to be a Power Automate question and you will probably get a quicker response from the experts over at the Power Automate Community

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Verified answer
    innes_NZ Profile Picture
    34 on at

    Thanks ... yes, probably the best option.  I'll head over there.  Cheers.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard