I am attempting to convert a word document, which contains images, to HTML. The resulting HTML will be used as the body for sending email using System.Net.Mail.SmtpClient.
I tried this with version 11 and DOCIO was embedding the images as data:image/png;base64..... The images would not appear in the email, they showed as a red X. I could save the email as HTML and view the image properly.
I upgraded to the latest version 14 release to see if I could get this working. When I save the word document to html, I am using the save option to save it to a memory stream. DOCIO is creating an _images folder that contains the images in the document. The resulting email cannot show the images since they are not embedded in the email.
I am thinking that the references in the html need to use CID. I am trying to determine if I will have to do this manually or if this is something that DOCIO can do for me.
Do you have a recommendation or sample that shows how to use DOCIO to convert a document to html and use that to produce an email with embedded images?
Dan