poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srikrishnudu <s.nagan...@berlinatlantic.com>
Subject Re: Error reading the excel file
Date Wed, 09 Sep 2009 09:30:51 GMT

Hi,
could you please tell me if you found the solution for your problem? I am
facing exactly same issue what you mentioned in your message.

Thanks in advance.
regards
Krishna



hruday atal wrote:
> 
> Hi ,
> 
>             I am having some problem when reading the excel file.
> 
>             While reading excel file I am getting
> error-*java.io.IOException:
> *Unable to read entire block; 4 bytes read; expected 512 bytes.
> 
> InputStream stream =  objFormFile.getInputStream();
> 
> POIFSFileSystem fs = new POIFSFileSystem(stream);Ɵgetting above error
> here.
> 
> HSSFWorkbook wb = new HSSFWorkbook(fs);
> 
> 
> 
> Case 1:
> 
> I download the file on the system ,save it ,and then directly upload it to
> the system ,I get the above error .
> 
> 
> 
> Case 2:
> 
> It works fine if I download the excel and manually open and save it and
> then
> upload it .
> 
>  I am using JDK1.4.1,poi-2.5.1-final-20040804.jar.
> 
> Can u please help me out for the above problem?
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-reading-the-excel-file-tp18751908p25361513.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message