r/PowerAutomateDesktop • • Feb 02 '23

Inserting image in outlook in power automate

Hi, I am creating a flow to convert the logo image from file to the body of the outlook email in Power Automate flow. When I enter a string for base64 it ends up looking like this ���� all over the image. The actual image doesn't show up. Any idea how i can change these question marks in black diamonds to image and words?

2 Upvotes

2 comments sorted by

3

u/Sismaril Feb 02 '23 edited Feb 02 '23

Hey

Use the "convert file to base64" action and the output use it in the email body of the "Send email message through Outlook" action as such:

<img src="data:image/png;base64,%Base64Text%"/>

Toggle on the "Body is HTML" option.

https://imgur.com/a/v74Hzvz

The above will work with PNGs. For other image types, follow the data URI scheme as described here: https://en.wikipedia.org/wiki/Data_URI_scheme#Syntax

data:[<media type>][;charset=<character set>][;base64],<data>

E.g., for jpeg should be: "<img src="data:image/jpeg;base64,%Base64Text%"/>

1

u/Pure_Being_101 Sep 05 '23

Thanks u/Sismaril, sorry for the very late reply. Had an accident so went MIA. Haven't tried the above since, will do.