I am struggeling with an issue which is took me a lot of time. I want to upload pictures from my phone to PowerApps and then upload it to Sharepoint. As you can see I am using Add picture function in PowerApps. and then I want through a flow upload the uploaded photo to sharepoint. This flow works perfctley when I take a picture from PowerApps camera. But when I use this for uploaded photo it does not work. In PowerApps I dont get any error but when I look to flow then I get this error.:
InvalidTemplate. Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2076': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value 'appres://blobmanager/44d89ffa59234887b2510e2b4030f1ed/3' was not formatted correctly. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'.
Take a look at the following Blog article from John Liu. It does a good job of explaining the problem and offering a solution. There are other similar posts that offer different solutions but this is one of the best so far.
Although I don't think this solves the 'appres:blobmanager' local caching stuff where we can't seem to find a way to actually get at the content of these temporary blobs...
Try taking the Media from the AddPicture control and displaying it in a separate Image control - I just tried this and it worked for me -
1. Use the Add Picture control to upload a file from my device - if I try to extract that 'media' i get the appres://blobmanager stuff.
2. Create an Image control and set it's Image property to my Add Picture control's .Media property. (the appres://blobmanager link)
Now the JSON function referenced in the link above used against the new image control displaying the uploaded content from the AddPicture control will give me actual base64 data not just the appres://blobmanager link.