Java
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Java

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 31st, 2008, 09:31 AM
hruday atal
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Error reading the excel file

Hi ,

I am having some problem when reading the excel file.

While reading excel file I am getting error-*java.io.IException:
*Unable to read entire block; 4 bytes read; expected 512 bytes.

InputStream stream = objFormFile.getInputStream();

PIFSFileSystem fs = new PIFSFileSystem(stream); 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?

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Java > Error reading the excel file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek