cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dyee4613
Helper V
Helper V

Access Stored Photos/Photo Size

 

I built an app with photo capabilities.  This app dumps the data into excel.  I had the following questions about pictures.

 

1) Is there a way I can access the picture data?  The field is populated with an incredibly long URL that starts with data:image/png;base64, and goes on for about 30 lines of text.  How can I view my picture?

 

2) Eventually, I'm going to want my app to dump directly into the ERP system.  To do that, I'm likely going to have to shrink the size of the image.  Is there any way to see how big the pictures are and anything I can do in powerapps to shrink the size of the image?  

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaulD1
Super User
Super User

To access the picture data within a PowerApp, add an image control and set the image property to the field containing the long URL.

To create a standard binary picture file, you can use Flow to take the long URL, turn it into a binary (use the DataUriToBinary expression) and save to OneDrive, SharePoint, Blob Storage, etc.

Images taken with the camera control are 640x480 when taken through a browser or on an Android device. I have seen a bug reported on iOS where the size of the image depends on the size of the camera control. 640x480 images are about 500Kb.

If you need higher resolution images you need to take a look at the Add Picture control (which will just bring in an existing image). There is not option to change the resolution of an image within PowerApps.

View solution in original post

2 REPLIES 2
PaulD1
Super User
Super User

To access the picture data within a PowerApp, add an image control and set the image property to the field containing the long URL.

To create a standard binary picture file, you can use Flow to take the long URL, turn it into a binary (use the DataUriToBinary expression) and save to OneDrive, SharePoint, Blob Storage, etc.

Images taken with the camera control are 640x480 when taken through a browser or on an Android device. I have seen a bug reported on iOS where the size of the image depends on the size of the camera control. 640x480 images are about 500Kb.

If you need higher resolution images you need to take a look at the Add Picture control (which will just bring in an existing image). There is not option to change the resolution of an image within PowerApps.

Thank you!  This was exactly what I was looking for.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,719)