Free Support Forum -

Storing Images as text and rendering it back


I have a typical requirement that, user can upload the images along with the text using the rich text editor. In this case I would like to store the images also as part of the document (html).

Like it could also be an external image tag or it could be an binary data from editor.

Please let me know your comments.



Thanks for your request. In this case you should use MHTML, which is actually HTML with all resources embedded. Also, you can try storing your images as base64 in your HTML documents. Using Aspose.Words you can import and export HTML with such images:

Hope this helps.

Best regards,