Hi there,
I have a Base64 encoded image that seems to be working correctly. Now I want to upload this image to SharePoint and save it as a file, but unfortunately it is not working the way I want it to.
I can see the data in the text editor when I open the image there, but I cannot view or open it as a picture. In the Apply to each action I have the output of select('Body') as input. In the Compose action, I use the replace(items('Apply_to_each')?['Images64'], 'data:image/png;base64,', '') formula to remove the Base64 header from the images. In the Base64ToBinary action I then use base64ToBinary(outputs('Compose_3')).
For the Create file action I set the output of Base64ToBinary in the file content. In the In and Output of Base64ToBinary I have added the image.
However, the image does not seem to be saved correctly. Where is my mistake?
Thanks for your help!