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 / Send Image through Pow...
Power Apps
Answered

Send Image through Power Automate

(0) ShareShare
ReportReport
Posted on by 245
Hi!  I'm struggling a bit trying to allow a user to take or upload a photo, but then send it through to Power Automate for further processing...
 
The OnSelect of my send button (btnSend) looks like this, currently:
Set(varUserId, User().Email); // or any other user identifier
Set(varImageJSON, JSON(UploadedImage2.Image, JSONFormat.IncludeBinaryData));
Set(varImageBase64, varImageJSON);
HRPhoto.Run(varUserId, varImageBase64);

I figured Base64 was my safest bet but cannot get it to flow into Power Automate... when it's just the userId field as a Trigger Condition, it works fine.  My end game will be to use Power Automate to route the image through a developer Adobe Express API for reduction and file conversion and then into SharePoint to be used to create an ID Badge.  
 
Thank you for any assistance, advice or guidance you can offer!
 
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,725 Most Valuable Professional on at
    First, switch the second parameter in the flow to a File parameter instead of a text parameter.  Second, I've seen an issue lately with Power Apps adding a set of quotes around the Base64 JSON. So you need to strip that off when you send it to the flow See Substitute() below.  But here is my working demo of the upload.
     
    1) in onChange of an AddMediabutton control
           
    Set(myimage, AddMediaButton1.Media);Set(myjson, JSON(myimage,JSONFormat.IncludeBinaryData));
     
    2) In a button to do the actual upload
     
    UploadFileFlow.Run(
        "test",{file: {contentBytes: Substitute(myjson2,"""",""), name: "test.jpg"}}
    );
     
    3) in the UploadFileFlow

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • apettit Profile Picture
    245 on at
    @Pstork1 You are a gem!  Thank you so much for the boost! 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard