Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 9080 invoked from network); 9 Sep 2009 09:31:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Sep 2009 09:31:23 -0000 Received: (qmail 6143 invoked by uid 500); 9 Sep 2009 09:31:22 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 6121 invoked by uid 500); 9 Sep 2009 09:31:22 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 6111 invoked by uid 99); 9 Sep 2009 09:31:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 09:31:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2009 09:31:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MlJVr-0003iQ-En for user@poi.apache.org; Wed, 09 Sep 2009 02:30:51 -0700 Message-ID: <25361513.post@talk.nabble.com> Date: Wed, 9 Sep 2009 02:30:51 -0700 (PDT) From: srikrishnudu To: user@poi.apache.org Subject: Re: Error reading the excel file In-Reply-To: <160a11600807310246h1a3aecbh13182239c91e033e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: s.nagandla@berlinatlantic.com References: <160a11600807310246h1a3aecbh13182239c91e033e@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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: >=20 > Hi , >=20 > I am having some problem when reading the excel file. >=20 > While reading excel file I am getting > error-*java.io.IOException: > *Unable to read entire block; 4 bytes read; expected 512 bytes. >=20 > InputStream stream =3D objFormFile.getInputStream(); >=20 > POIFSFileSystem fs =3D new POIFSFileSystem(stream);=C3=9Fgetting above er= ror > here. >=20 > HSSFWorkbook wb =3D new HSSFWorkbook(fs); >=20 >=20 >=20 > Case 1: >=20 > I download the file on the system ,save it ,and then directly upload it t= o > the system ,I get the above error . >=20 >=20 >=20 > Case 2: >=20 > It works fine if I download the excel and manually open and save it and > then > upload it . >=20 > I am using JDK1.4.1,poi-2.5.1-final-20040804.jar. >=20 > Can u please help me out for the above problem? >=20 >=20 --=20 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