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 / How to handle image co...
Power Apps
Unanswered

How to handle image conversion with the AddMedia control?

(2) ShareShare
ReportReport
Posted on by 121
...Hello.

I few months ago, I created a canvas app in which I was handling conversion of images coming either from the camera or the AddMedia control.

In order to send the image content to Power Automate, I was doing that juste before:

    Set(varPhoto1, JSON(varImage1, JSONFormat.IncludeBinaryData));
    Set(num,Find(",",varPhoto1));
    Set(varBase64_1, Mid(varPhoto1, num+1,Len(varPhoto1)-num-1));

It still works only when the image comes from the camera (content is 
"data:image/png;base64,iVBORw0KGgoAAAANS.......")

But now, when the image comes from the AddMedia control, the content is an URL: "appres://blobmanager/9626a6429995450ebd0b060242818af7/1"

Of course the difference makes that now, when I transmit to Power Automate, it cannot handle the content for the second case.

As there been some change recently?

Any help is welcome as I don't know how to convert the URL into the real content.

As a side note, this new effect is both on the mobile and the PC.

I did not find any setting or something else to explain this behavior.

Thanks for your help!

Gilles.
Categories:
I have the same question (4)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
     
    Did you get this resolved? Or did you still need help?
  • Gilles12 Profile Picture
    121 on at
    Hi @Michael E. Gernaey.

    No the question is not resolved, however I managed to do differently (through the attachments control and a specific and different power automate flow that the one processing the picture taken directly with the camera).

    What I wanted to do initially is to handle the same way a picture taken with the camera and a picture selected with the Media control, so having a unique power automate flow.
     
    Because of the codification of the picture out of the Media control, I was not able to achieve that. I realized I was not so sure that it was working before as I was thinking. But the question remains!

    If ever you have an idea how to convert the picture from the Media control so it is codified the same way as the picture from the camera, while staying in the power app, yes it would help.

    Thanks for your answer!

    Gilles.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard