web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / upload image via power...
Power Apps
Unanswered

upload image via power automate flow from device not working

(1) ShareShare
ReportReport
Posted on by

Hi Guys,

I am working on an app that is connected to a sharepoint library. 

I capture a photo with the camera component and fill out additional data, then i put everything in my sharepoint library via a power automate flow. i basically followed this tutorial: https://www.youtube.com/watch?v=P6xMLprDTjU 

 

I have to do it with a flow because the attachment option isnt working offline. 

After i entered all information i use the collect function, so that when i have internet again i can loop through all elements and upload them with my flow. 

This works when i test my app in browser, however when i try it on my ipad air5 i get this error in power automate:

 

Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The provided value '/SessionStorage/11ED8ADA-4D47-4FE9-A8FB-1ABF1236E7C2.jpeg' was not formatted correctly. Please see https://aka.ms/logicexpressions#dataUriToBinary for usage details.'

 

So it seems that the format of the picture is different on the ipad? can i convert the ipad photo format to the expected data uri?  because the ipad would be the use case i have...

I tried turning "optimize images for upload" on but it didnt seem to change anything...

also on that note - does it even work for multiple users to use the app, when they didnt create the flow? do they have access?

 

here is the flow:

SteveDaPirate_0-1720512495194.png

 

thats my collect function to collect all data:

Collect(FormData,
{DataName: (Text(dcvDate.SelectedDate,"yyyy-mm-dd") & " - " & dcvTitle.Text &".jpg"),
DataPhoto: First(colPhoto).Value,
DataAmount: Value(dcvAmout.Text),
DataDescription: dcvDescription.Text,
DataDate: Text(dcvDate.SelectedDate,"yyyy-mm-dd"),
DataTitle: dcvTitle.Text});
 
and the flow trigger:
ForAll(FormData,
        powerAppsLibrary.Run(
            DataName, DataPhoto, DataAmount, DataDescription, DataDate, DataTitle))
 
Any help would be much appreciated, thank you!
Categories:
I have the same question (0)
  • SteveDaPirate Profile Picture
    on at

    In addition to that:

    when I print  First(colPhoto).Value

    on the ipad i get:
    /SessionStorage/841ED2CA-E651-402F-972F-4F81B8DC0F4B.jpeg
     
    for the browser capture i get:

    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAAXNSR0IArs4c6QAAIABJREFUeF6kvWmzZcl1HZb3vfvmGl5NXVU9sEdMBAnQGmxJNElZZtikbOmrZcp2hKwIO/wnFPoi2vpkfXDYDjuCsmQrLFshWUFRks0IwiQBAgQBEkADaICNHtCoHqqrqmt+83Ada629MvfJe241ZL2I7vfqDufkydy599prDzn563/tP5+dnp6W6fK0r [...]  (like a million characters long)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard