cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KevinHardy
Level 8

Is it possible to convert appres://blobmanager to Base64

Hi All,

From searching I see that there are a few questions along these lines. My Camera control works fine, but we also need to have the ability to attach a photograph. I've used the AddPicture control which it appears only saves the image to the devices cache as a appres://blobmanager address? So although it will save the data to the Sharepoint list it can't then be shown in a Gallery as an image at a later time.

Is there any way to convert this to Base 64 similar to the one the Camera function uses?

I've seen some solutions/workarounds online, but to be honest I don't understand them. I know nothing about Flow and have only a rudimentary knowledge of PowerApps.

Kev

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Is it possible to convert appres://blobmanager to Base64

Hi @KevinHardy ,

Could you please share a bit more about your scenario?

Do you want to convert the appres://blobmanager data into a Base64 data?

 

Based on the needs that you mentioned, I think the JSON function could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:

3.JPG

 

4.JPG

Set the OnSelect property of the "Convert" button to following:

Set(BinaryImageData, Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""",""))

Then if you want to save the Base64 data back to your SP List, please use the BinaryImageData variable.

 

If you use Patch function to patch data back to your SP List, please consider take a try with the following formula:

Patch(
       'YourSPList',
       Defaults('YourSPList'),
       {
         ...
         ImgColumn: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""",""),
         ...
       }
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Is it possible to convert appres://blobmanager to Base64

Hi @KevinHardy ,

Could you please share a bit more about your scenario?

Do you want to convert the appres://blobmanager data into a Base64 data?

 

Based on the needs that you mentioned, I think the JSON function could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:

3.JPG

 

4.JPG

Set the OnSelect property of the "Convert" button to following:

Set(BinaryImageData, Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""",""))

Then if you want to save the Base64 data back to your SP List, please use the BinaryImageData variable.

 

If you use Patch function to patch data back to your SP List, please consider take a try with the following formula:

Patch(
       'YourSPList',
       Defaults('YourSPList'),
       {
         ...
         ImgColumn: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""",""),
         ...
       }
)

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
KevinHardy
Level 8

Re: Is it possible to convert appres://blobmanager to Base64

Thank you @v-xida-msft 

This worked brilliantly! And in fact can replace the camera function I had originally used as it asks user on mobile devices whether they want to take a new picture or add from their device which is even better 🙂

Thanks again

Kev

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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