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 Automate / Add a Base64 image to ...
Power Automate
Unanswered

Add a Base64 image to a Compose HTML

(0) ShareShare
ReportReport
Posted on by 387

Hi PA veterans,


How can I add an image to the Compose action similar to the second image in this post below?

 Solved: Issue with Compose action when converting html to ... - Power Platform Community (microsoft.com)

 

I'd like to have a company logo to be located to the top left of my HTML table in the Compose.

i.e.  Compose:

Logo image    Table Title

<Table body..>

 

For your reference, I use this website to convert the logo image to Base 64:

Convert Image to Base64 Online | Base64Encoder

 

Thanks everyone!

 

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,432 Super User 2026 Season 1 on at

    @Australia we always add our company logo to emails that go out internally to staff as well as externally. You can add a Get file content using path action (or Get file content) to select the image then reference that with a dataUri expression. You need to select the </> code view and add html tags in the email body:
    addImage2.png

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Australia Profile Picture
    387 on at

    Many thanks for the reply @RobElliott .

    Sorry I didn't make it clear. Am I able to display the logo in a PDF file? i.e. Compose > OneDrive create HTML > OneDrive convert PDF

  • RobElliott Profile Picture
    10,432 Super User 2026 Season 1 on at

    @Australia yes, just add the html code into a create file action with .html as the extension of the filename and use the convert file action:

    2-Flow.png

     

    3-Flow.png

     

    4-Flow.png

     

    5-Flow.png

     

    6-Email.png

     

    7-PDF.png

     


    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Australia Profile Picture
    387 on at

    @RobElliott Much appreciate Rob. It works beautifully! You are a legend.

    form.jpg

     

    <p><br>
    <img src="@{dataUri(body('Get_file_content_using_path'))}" width="100px"></img><p style="text-align: center;"><strong><span style="font-family: Calibri, sans-serif;">2022 NEW FORM&nbsp;</span></strong></p>
    @{outputs('Compose_2_CSS_Styling')}

     

    Just one last thing if you don't mind, how can I position the title of the document to the right of the logo?

    I want it to look like this if possible:

    logo.jpg

     

    Thanks again.

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 Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard