aspose file tools*
The moose likes Servlets and the fly likes HSSF: Getting java.io.IOException. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HSSF: Getting java.io.IOException. " Watch "HSSF: Getting java.io.IOException. " New topic
Author

HSSF: Getting java.io.IOException.

Pramod
Greenhorn

Joined: Jan 14, 2003
Posts: 6
I am uploading an MSExcel file to a servlet. The servlet reads this file thru ServletInputStream and when I try to pass this stream to
// reads Excel file
HSSFWorkbook wb = new HSSFWorkbook(inputStream);
It throws me exception:
java.io.IOException Unable to read entire block; 49 bytes read; expected 512 bytes
Can anybody help me in this ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HSSF: Getting java.io.IOException.