Hi Aspose Support.
While trying to open HTML / HTM document using Words (I've seen instruction on your web page ages ago, yet I cannot find it right now) using this code I do got following error:
Document asposeDocument = null;
try {
asposeDocument = new Document(new ByteArrayInputStream(htmlDocument));
} catch (Exception e) {
Caused by: com.aspose.words.FileCorruptedException: The document appears to be corrupted and cannot be loaded.
at com.aspose.words.FileFormatUtil.zzY(Unknown Source) ~[aspose-words-14.3.0.jar:14.3.0.0]
at com.aspose.words.Document.zzY(Unknown Source) ~[aspose-words-14.3.0.jar:14.3.0.0]
at com.aspose.words.Document.zzZ(Unknown Source) ~[aspose-words-14.3.0.jar:14.3.0.0]
at com.aspose.words.Document.(Unknown Source) ~[aspose-words-14.3.0.jar:14.3.0.0]
at com.aspose.words.Document.(Unknown Source) ~[aspose-words-14.3.0.jar:14.3.0.0]
at com.aspose.words.Document.(Unknown Source) ~[aspose-words-14.3.0.jar:14.3.0.0]
In attachment two html/htm files, generated automatically by one of our applications: original -crashing-versions and the working ones, without specific tag inside tag.
Please advice if there's a way, a workaround for this error.
Thank you very much,
Kind regards,
Michał Wasiak
Kind regards,
Michał Wasiak