File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HSSF: Getting java.io.IOException.
 
Similar Threads
B&S: Beginner Questions
"java.io.IOException: Error writing Response Body: 69
IO Exception: Unable to read entire block; 49 bytes read; expected 512 bytes
InputStream.read(byte[])
Can we refresh the directory from middle of java code