right, I noticed this. After remove the extra 2 bytes, it works ok.

At 09:10 PM 8/9/2002 -0400, you wrote:
>Try using a BufferedInputStream and make sure there isn't an extra CRLF on 
>the end of the file (this happens in a lot of these).
>
>-Andy
>
>Richard Li wrote:
>
>>Hi All,
>>
>>I run into trouble with excel upload and POIFSFileSystem.
>>
>>After the parser parsed out the uploaded excel doc from POST, if I save 
>>it, the file looks perfect. However, if I new POIFSFileSystem(stream), I 
>>got the following exception:
>>IOException :java.io.IOException: Unable to read entire block; 2 bytes 
>>read; expected 512 bytes
>>
>>I have encountered this problem with 2 Multipart Parser. Anybody has any 
>>clue where I should check? I am using POI 1.7 version.
>>
>>
>>
>>Richard Li
>>Consultant, Goldrush New Quoting
>>Phone: 408-853-2276 (32276)
>>Page: 408-237-2038
>>Cell: 408-391-5298
>>[EMAIL PROTECTED]
>>
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


Richard Li      
Consultant, Goldrush New Quoting
Phone: 408-853-2276 (32276)
Page: 408-237-2038
Cell: 408-391-5298
[EMAIL PROTECTED]


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

Reply via email to