Word to html conversion issue for image

Hi,

I am converting a word document to html which has some image in it, after the conversion the image is separately saved and html has the link for it.

Is there any way where we can directly embed the image in HTML ?

Regards,

Divesh Salian

Hi Divesh,

Thanks for your inquiry. Sure, you can use HtmlSaveOptions.ExportImagesAsBase64 property to specify whether images are saved in Base64 format to HTML. When this property is set to true image data is exported directly on the img elements and separate files are not created:
https://reference.aspose.com/words/net/aspose.words.saving/htmlsaveoptions/exportimagesasbase64/

Please let us know if this solves your problem.

Best regards,