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 upload an image...
Power Apps
Answered

How to upload an image from Power Apps and insert it into a Word template via Power Automate?

(0) ShareShare
ReportReport
Posted on by 4

Hello everyone,

I am currently building a solution where users enter all information for an aviation damage report in a Power App. They also need to upload an image (damage photo).

My goal:

-The image should be uploaded in the app

-Stored in SharePoint (or another suitable way)

-Then passed to Power Automate

-And finally inserted into a Word template (using Encodian "Replace Text with Image")

 

The problem:

-SharePoint image columns do not show up in Power Automate as dynamic content.

-If I use attachments, the file is stored but I struggle to link it correctly in the Flow.

-I only need the final result: The image should appear correctly in the generated Word document (format: JPG or PNG is fine).


Question:

What is the best practice to handle this?

Should I use an Attachments control, a Text column with an image URL, or directly pass the file content from Power Apps into Power Automate?

Any clear step-by-step example would be very helpful.

 

Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    MarkRahn Profile Picture
    1,229 Super User 2025 Season 2 on at
     
    There are a lot of good resources out there to tackle this problem.
     
    Since you are working with a damage report, you probably want to capture as high a resolution photo as possible. Take a look at this YouTube video by Shane Young that might help with the image capture part and getting the best resolution possible for what you need:
    Power Apps Camera Control, Add Picture Control, and Optimize Image for Upload
     
    For getting the image into a Word Document, both of these videos might be useful depending on what licensing you have (Standard/Premium).
    Reza Dorrani is always a good resource. This is one of his videos:
    Populate a Word Template with Power Automate | How to Tutorial
     
    This is an additional video which might be relevant:
    Populating Word Template with Images in Power Apps and Power Automate
     
    Hopefully this gets you going in the right direction.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark

     

  • Verified answer
    WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at
    You mentioned Encodian, which I also use - the first thing you need to do is read this tutorial and also watch this video (both from Encodian).
     
    Now to your issue - if you put an Image control on the screen with the Image column and send this to the Flow as a parameter
    JSON(
       YourImageControl.Image,
       JSONFormat.IncludeBinaryData
    )
    and then use base64() on this parameter in the Flow, you should be able to follow the tutorial and insert the output of this into the Word template. However a better plan may be to use the attachment example in the tutorial.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful?
    Visit my blog
    Practical Power Apps    LinkedIn  
  • MarkRahn Profile Picture
    1,229 Super User 2025 Season 2 on at
     
    I think @WarrenBelz has the best answer for what you are trying to do. The tutorials he has linked to look to be exactly what you are looking for. Unless you have any additional questions or issues regarding this issue, you should mark his post as the Answer.
     
    @WarrenBelz - I just wanted to express my gratitude to you for sharing your deep knowledge of the Power Platform with the Community.
    Please consider writing a blog post with tips for others that reply to questions on the forums on how to present clear answers in this new Community site. Do you write your replies in another tool and then paste into the textbox for a Post for example? Specifically navigating the format of a response. Your use of bold, italics, and code blocks makes your replies easy to read and understand. Even your Response Tag is an example to be followed and emulated.
     
    Thank you -Mark
  • CK-21091126-0 Profile Picture
    4 on at
    Hi @WarrenBelz, 
     
    thank you so much for your help. 
     

    I've definitely made progress. However, I'm now stuck again at a point where I haven't been able to find the solution for me in the videos either. I'm sending a few screenshots that show both part of my send button and my flow structure. I had to build a hybrid flow because I work with SharePoint lists (I have about 120 parameters that need to be transferred). However, I transfer the image directly from the app to the flow. Do you perhaps have a solution for my current problem? Thank you in advance and best regards.

     

     

  • WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at
    It is really impossible to comment much without seeing both your Word template and the code inside the elements of that Flow. However the error may suggest that the image is not valid. You may be better sending the Image property of an Image Control rather than the Media content of what you have now.
     
  • CK-21091126-0 Profile Picture
    4 on at
     

    Yes, I can well that it is very difficult to help me with this problem without seeing the Problem. Is there any way I can show you the Word template and the details of the flow, or the code?

     

     

  • Youssef_Arouay Profile Picture
    176 on at
    • Use the Add picture  control in Power Apps and convert the image to a Data URI that includes binary using JSON(..., JSONFormat.IncludeBinaryData).

    • Send that Data URI string to a Power Automate flow (PowerApps trigger). In the flow convert the Data URI to the form Encodian expects (Encodian wants a Base64 encoded image string for the Image File Content). You can convert using the Power Automate expression base64(dataUriToBinary(...))

    • Store the photo in a SharePoint Document Library if you need to keep it long-term: I think it’s easier to get the binary with Get file content than dealing with the list Image column.


    •  
  • WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at
     
    Yes screenshots would be a good start.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard