Hello everyone,
I would like to display a png image that is uploaded to my canvas app in the email body message that will be sent using the outlook connector within the app.
I have tried to convert the png image to base64 that is defined in variable and after that, I passed this variable in the body of the email inside the HTML source code as below, but unfortunately, it is not working and displaying the image in the email it is showing a blank content:
Set(PenVar, JSON( Image.Image,JSONFormat.IncludeBinaryData ) );
Office365Outlook.SendEmailV2("test@microsoft.com","test","<img src='data:image/png;base64,"&PenVar&"' alt='TestImg' width='500' height='600'>",{IsHTML:true})


What I am doing wrong? Could you please provide an example and the corrected formula that will make it work?
Any help is highly appreciated.
Thank you!