https://issues.apache.org/bugzilla/show_bug.cgi?id=47991
Summary: HSMF - All .msg attachments have zeros at the end of
the files
Product: POI
Version: 3.6-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSMF
AssignedTo: [email protected]
ReportedBy: [email protected]
If an attachment is read from a msg file via the getAttachmentFiles() of the
MapiMessage class and streamed to a file, the result will be a file with even
length and lots of zeros in the end. For example a PDF file ends with
%%EOF{CR}, but the attachment from the msg show in an editor:
%%EOF{CR}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}{NUL}.
Just compare the original files that were put into the msg and the result of
the getAttachmentFiles() method using a diff tool and you will see. Outlook
extracts the attachments correctly by the way, it seems to know the exact
length of the files.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]