How to get inline image in the mail body!Error

Can you let me know how can i convert the image present in my local into base 64 format ?

give a try at:

strFilePath = FullFilePathToTheImage

Assign Activity:
strB64 = Convert.ToBase64String(File.ReadAllBytes(strFilePath))

Keep in mind:
strB64 is only the part:
grafik

the red part you would handle e.g. by prepending or within the html part

It can fail, when done this the first time. But just focus on the correct red handle part, then it it will work

3 Likes

Thank you so much for the solution

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.