DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28231>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28231

POIFS throws an IOException when trying to open a file whose size is not a multiple of 
512

           Summary: POIFS throws an IOException when trying to open a file
                    whose size is not a multiple of 512
           Product: POI
           Version: unspecified
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: POIFS
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This is a big problem because the creating applications (Word, Excel) will open 
these files with no problems. I get the following stacktrace:
java.io.IOException: Unable to read entire block; 1 byte read; expected 512 
bytes

        at org.apache.poi.poifs.storage.RawDataBlock.<init>
(RawDataBlock.java:62)

        at org.apache.poi.poifs.storage.RawDataBlockList.<init>
(RawDataBlockList.java:51)

        at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>
(POIFSFileSystem.java:86)

        at td.plugin.thumbnail.OleThumbnailRenderer.createRenderedImage
(OleThumbnailRenderer.java:95)

        at td.plugin.thumbnail.OleThumbnailRenderer.main
(OleThumbnailRenderer.java:218)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to