Hi,
I am getting item pictures from Business Central using HTTP GET in Flow. Flow is testet and works fine. The data is stored as an JSON and sent back to Powerapps using a "respond"-element. In powerapps, the JSON-response is stored in a new variable as such:
Set(varItemJSON;Getitempicture.Run(VarItemID))
The JSON contains a Base64-string for picture that i want to display in Image4 using its image-control. However the picture will not appear and i have tried several options. see below:
OPTION 1
Concatenate(Char(34);"data:image;application/octet-stream;base64,";varItemJSON.'$content';Char(34))
OPTION 2
"data:image;application/octet-stream;base64,"& <BASE64 STRING>"
OPTION 3
Char(34)& "data:image;application/octet-stream;base64,"& <BASE64 STRING>" & Char(34)
I have read that the formula "data:image;application/octet-stream;base64,& <BASE64 STRING>" must be quotes ("").
Strangely the picture shows when i paste in the base64 string directly as below, but this method is not an option:
"data:image;application/octet-stream;base64,"& "/9j/4AAQSkZJR.....+zqPy9Xt3oLgDAYoK0CgUCg//2Q=="
What am i doing wrong?
cheers