Loading document with InputStream returns blank image on saving it as jpeg/png/tiff

I am using aspose.words in a spring boot web project, loading rtf/txt/doc/docx files and saving/returning a particular page as tiff/jpeg/png. When I use Document(String) constructor it’s working properly, but when using Document(InputStream) it is returning blank image/file.

Using aspose.words 17.4.0
In a seperate java project both constructos are working as expected.

@kati_19,

Thanks for your inquiry. Please make sure that you are passing the correct InputStream to Document constructor. You can save InputStream to disk in your web project to check either it is the same word document or not.

@tahir.manzoor
Thanks for your reply… I tried again from scratch, It’s working properly now. Don’t know where was the problem, but I’ll try to identify.

@kati_19,

Thanks for your feedback. It is nice to hear from you that your issue is resolved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.