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?
Solved! Go to Solution.
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.
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.
User | Count |
---|---|
252 | |
107 | |
88 | |
51 | |
44 |