Hi all,

I have problems opening an excel template out of a jar file. I tried both
 ... new POIFSFileSystem(...getResourceAsStream(<filename>)) and
 ... new POIFSFileSystem(...getResource(<filename>).openStream())
and received following IOException:

java.io.IOException: Unable to read entire block; 44 bytes read; expected
512 bytes
        at
org.apache.poi.poifs.storage.RawDataBlock.<init>(RawDataBlock.java:98)
        at
org.apache.poi.poifs.storage.RawDataBlockList.<init>(RawDataBlockList.java:8
8)
        at
org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSystem.java:
123)

When running the code in IDE I don't have any problem.
I use jakarta-poi-1.10.0-dev-20030222 and eclipse.

Does anybody have an idea ?

Kind regards,

Michael.

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

Reply via email to