I have a requirement of converting file( html / jpeg ) to word
for which I am using aspose java
for base I have a ByteArrayOutputStream which I want to save as docx
I wrote it like this
InputStream inputStream = new ByteArrayInputStream( baos.toByteArray() );
LoadOptions loadOptions = new LoadOptions();
loadOptions.setLoadFormat( LoadFormat.HTML );
com.aspose.words.Document doc = new com.aspose.words.Document( inputStream, loadOptions );
doc.save( "C://ConvertedDocument.docx", SaveFormat.DOCX );
But this is creating document with text only
Please guide me for saving images in the docx