Bug 18117 - Cannot Load WorkBook from non-FileInputStream
Summary: Cannot Load WorkBook from non-FileInputStream
Status: RESOLVED DUPLICATE of bug 13478
Alias: None
Product: POI
Classification: Unclassified
Component: POIFS (show other bugs)
Version: 2.0-dev
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2003-03-18 18:00 UTC by Tony Chao
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chao 2003-03-18 18:00:38 UTC
RawDataBlock expects to read 512 bytes on every read.
InputStreams that are not FileInputStream can often return less than 512 bytes
on any given read. (e.g. ServletInputStream or ByteArrayInputStream)
Comment 1 Avik Sengupta 2003-03-18 18:33:37 UTC
Try the workaround in bug 13478. Or try wrapping your stream in a buffered input
stream. I think that should help. does it?

*** This bug has been marked as a duplicate of 13478 ***