We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set image URIs while converting DOCX to HTML using Java


While converting a document (containing images) to HTML, how do we save the images in different server which takes the stream as input and returns the URI.

Through IImageSavingCallback we can get the stream of the image and save it in the target server, but how will we save the URI reference in the generated HTML document?

Please let me know if you need more information.


Hi Ragu,

Thanks for your query. Please use setImagesFolderAlias method to specify the name of the folder used to construct image URIs written into an HTML document.

HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.HTML);

Hope this answers your query. Let me know, If you have any more queries.