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 / Photo from the device ...
Power Apps
Answered

Photo from the device can't be converted to binary

(0) ShareShare
ReportReport
Posted on by 264

Hi,

I have the following issue.

Originally I had a photo functionality built like: User takes a photo in PowerApps ---> Camera1.Photo Image is saved in the gallery ---> After click 'Accept' Gallery Images go to Microsoft Flow and they are being converted from Url to Binary in Flow and then sent to Sharepoint.

It worked fine, but I would like to upload photos from the device as well (by Add Picture functionality built into PowerApps). Everything seems to be alright, but all the process stucks on the error below.

Long story short: Why my Photos made in PowerApps can be converted and sent to SharePoint, and photos uploaded to PowerApps from the device can't?

Thank you,

pal95_0-1595593596220.png

 

Categories:
I have the same question (0)
  • Verified answer
    ganeshsanap Profile Picture
    1,551 on at

    @pal95 , you can convert the images taken from device to include binary data in Power Apps using JSON function in Power Apps. Check below formula to save an image in JSON binary format to a variable:

     

    Set(JSONImageSample, JSON(Images, JSONFormat.IncludeBinaryData));

     

    Then you can pass it to your flow like:

     

    MyFlow.Run(JSONImageSample)

     

    Check this documentation for detailed information: Getting pics to SharePoint from PowerApps is getting easier.

     

    If you want to do it using Power Automate only then check this:

    How to Upload Camera Pictures directly to Microsoft SharePoint with PowerApps and Microsoft Flow 


    Please click Accept as solution if my post helped you solve your issue. This will help others find the correct solution easily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • pal95 Profile Picture
    264 on at

    Sounds promising, will try and let you know!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard