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

Announcements

News and Announcements icon
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!
Unbenannt.png
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard