In my flow I've used a Compose to store the base64 string of an image.
In my Send an email (V2) I've setup an attachment:
[
{
"Name": "logo.png",
"ContentBytes": @{base64ToBinary(outputs('Compose_-_Email_Logo_Base64'))}
}
]
then in my body I've done
<img src="cid:logo.png" width="247" height="198" alt="Logo">
when I send the e-mail, the attachment is there, yet in the body all I get is a square with a red x stating "The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location.".
I've tried all sorts of variations which included things like adding
"IsInline": true,
"ContentId": "logo.png",
"ContentType": "image/png",
The only way I've been able to get it to work is to use an image hosted on a website and use that for the imge src (https://....)
Can anyone help me correct the <img > syntax to get this working with the compose base64 string to embed it directly in the message body. Since Outlook desktop doesn't support base64 images directly, I'm simply trying to find a way to replicate what I've long done in VBA which is to use the cid: approach, but can't find a way to do so in Flow.
Thank you.