web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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 148
...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,976 Moderator on at
     
    Did you get this resolved? Or did you still need help?
  • Gilles12 Profile Picture
    148 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard