Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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!
  • SteveDaPirate Profile Picture
    on at
    Re: upload image via power automate flow from device not working

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard