Bug 48854 - Word Document: Invalid Header Signature
Summary: Word Document: Invalid Header Signature
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: POIFS (show other bugs)
Version: 3.5-FINAL
Hardware: All All
: P2 critical (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 10:49 UTC by Gitu
Modified: 2010-03-08 11:54 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gitu 2010-03-04 10:49:31 UTC
Hi there,

I am trying to extract the content of a word document by using POIFSFileSystem to open the document. 

POIFSFileSystem throws the following exception when trying to load the document:

Invalid header signature; read 0x615C316674725C7B, expected 0xE11AB1A1E011CFD0

I have attached the document which has the problem.

Please help resolve the issue.

Thanks and Regards,
Gitu
Comment 1 Nick Burch 2010-03-08 11:54:32 UTC
No document was attached so I can't be sure, but that error is almost always caused by trying to open a file that isn't an OLE2 document. It's probably something like plain text, rtf, html or similar. Word is quite forgiving about what it'll open with a .doc extension