
Announcements
Hi,
I have a canvas app that triggers a flow that populates a word document. This document must include a certain image. At first I used the json function in powerapps to create a base64 string and use that in my flow and while this kind of works, it is very unreliable as powerapps often doesn't wait for the string to generate before triggering the flow.
So I changed my flow to include "download a image or file". This part works and I can see in the output there is a base64 string in $content that represents my image.
{
"$content-type": "application/octet-stream",
"$content": "iVBORw0KG....."
}
The problem is that the type is application/octet-stream which doesn't seem to be supported by anything inside power automate so I need to convert it.
I know I need to convert it to "$content-type": "image/png" but how can I access the string inside $content? I tried various things such as json converter, compose (which for whatever reason always only shows input and never output...) etc.
You can use the following expressions to access the two JSON properties:
The Outputs:
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.