Document cannot be loaded

Hi,


I have a problem when I try to load attached Word document. This is the Exception I got:

The document appears to be corrupted and cannot be loaded.

And here’s the code I used:

InputStream stream = new FileInputStream(new File(“EmailLayout_1029_AMR_APJ-Microsoft Word-zh-CN#GBJK#.docx”));
Document doc = new Document(stream);

I’m using Aspose.Words 14.3.0. Can you check this?

Thanks,
Zeljko



Hi Zeljko,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for Java 15.9.0 and have not found the shared issue. Please use Aspose.Words for Java 15.9.0 and let us know if you have any more queries.