How is your experience with the OutSystems Community?
951
Views
1
Comments
Display binary data image in email content from database
Question

Hello,

I want to display an image which is in binary data format in email. I am using the following image source for the html: 

src = "EncodeHtml(data:image/png;base64," + BinaryToBase64("image_BD"))

The problem is that I can successfully view the image when I open the email in the browser or in IOS, but not in outlook or gmail.

What can be the solution for this problem? 

Best Regards,

Sofia

2026-07-23 14-34-51
Nuno Reis
 
MVP

Apparently there should be no problems with that in GMail (now).

  • What is the size of your image? base64 has a small size, Gmail and Outlook may respect that limit and the others not.


  • Check in Original message if you have the right binary.


  • Try this cid trick (annexing the images in the mail, and linking to the local file)

https://stackoverflow.com/questions/41946783/gmail-blocking-small-embedded-inline-images-in-email-template

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.