Hi all,
I Have a flow that takes answers from a Form and enters them onto a Onenote page. Everything is working smoothly but I cannot figure out how to get an image to upload. I have the image URL and inserting it into a browser pulls up the correct test image. I have created a Compose function to translate that URL into base64 but I have no idea how to insert that into the HTML.
Please help!
Ahhhhh it was the putting Append to string variable into the apply to each, when it was outside I kept getting an error for the formula. Thank you so much for trouble shooting!
Hi @miaroze ,
There are a few mistakes in your flow that you need to fix and refer to my flow carefully.
<img src='@{dataUri(outputs('Get_file_content')?['body'])}'/>
Please take a closer look at my flow and avoid some logical errors as much as possible.
Best Regards,
Sunshine Gu
Hi! Thank you for responding. I added everything to my flow but the image still doesn't want to appear. There's a blank box where I think it should be? The only thing I changed was in the Append to String Variable action- I couldn't add the @ and parenthesis to the Expression. I wrote what I ended up with under the action.
Hi @miaroze ,
Do you want to embed the image uploaded in MS Form into html?
If so,I did a test for your reference.
In my scenario:
My OneNote:
My Flow:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
<img src='@{dataUri(outputs('Get_file_content')?['body'])}'/>
Best Regards,
Sunshine Gu
stampcoin
55
Michael E. Gernaey
39
Super User 2025 Season 1
VictorIvanidze
26