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 / PowerApps to Flow - Da...
Power Apps
Answered

PowerApps to Flow - DataURIToBinary

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a flow which intermittently fails. The failure occurs on the Compose step which converts data URI to binary. The data URI is passed from Powerapps after taking a picture using the Camera control. 

 

I experienced this error twice since yesterday.

Flow_InvalidDataURI.PNG
Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    HI @Anonymous,

     

    Could you please expand the "Compose" action within your flow?

    Could you please show more details about the formula that you provided within the Inputs field of the "Compose" action?

     

    I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:

     

    Flow configuration:6.JPG

     

     

    Within the Inputs field of the "Compose" action, type the following formula:

    dataUriToBinary(triggerBody()['Compose_Inputs'])

    App configuration:7.JPG

     

     

    Set the OnSelect property of the Camera control to following formula:

    ClearCollect(ImageCollection,Camera1.Photo)

    Set the OnSelect property of the "Upload" button to following formula:

    '20180914_case11'.Run(First(ImageCollection).Url)

    Note: The '20180914_case11' represents the flow on my side.

     

    Please check if you have passed proper value (Data url) from your app to the flow.

     

    Please check and see if the following blog would help in your scenario:

    https://www.techmikael.com/2017/05/an-even-more-clever-workaround-for.html

     

    In addition, if you want to upload pictures captured via the Camera control to Azure blob, you could also consider check the following blog:

    https://powerapps.microsoft.com/en-us/blog/custom-api-for-image-upload/

     

    Best regards,

    Kris

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard