com.aspose.words.UnsupportedFileFormatException: Unknown file format - is thrown

Hello, Support.
Our application uses aspose-words-15.8.0.jar library to handle word documents. Sometimes client attach .doc file that is generated by their third-party application (don’t know exactly which one, probably fax-machine), and it fails due to “com.aspose.words.UnsupportedFileFormatException: Unknown file format - is thrown”.
This happens somewhere in the constructor:

public Document(InputStream stream) throws Exception {
    this((zz9X)zz9X.zzZ(stream));
}

The sample file, that generates Exception, is attached. Any ideas why this could happen?
Thank you.

Hi Pavel,

Thanks for your inquiry. The shared input document is not a Word document. You can load this document into Aspose.Words’ DOM using following code example. Hope this helps you.

LoadOptions options = new LoadOptions();
options.setLoadFormat(LoadFormat.TEXT);
Document doc = new Document(MyDir + "0000-0000-0100-8455.doc", options);
doc.save(MyDir + "Out.docx");