At the moment I use the DocumentBuilder to generate a Word. From outside I become some HTMLs which I insert with:
builder.insertHtml(descriptionHTML);
Now we want to use another technology and I have to work with a MHTML file (which is saved as Base64 and converted to MHTML). Is there an easy way to do the same? How can I convert the MHTML to HTML with Aspose, to use the same API?
So is it right that there is no other possibility than saving the HTML temporary on disk? Because this means that the Images which were embedded in MHTML will be saved also separate on disk before I can insert the HTML with the DocumentBuilder. But this is done automatically?!
Hello
Thanks for your inquiry. I think, in your case you can try storing your images as base64 in your HTML documents. Using Aspose.Words you can import and export HTML with such images: https://reference.aspose.com/words/net/aspose.words.saving/htmlsaveoptions/exportimagesasbase64/
When this ExportImagesAsBase64 property is set to true image data is exported directly on the img elements and separate files are not created.
Best regards,