Set image URIs while converting DOCX to HTML using Java

Hi,


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.

Thanks
Ragu

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);
options.setImagesFolderAlias(“http://www.aspose.com/images/”);

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