poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Ackley" <sack...@cfl.rr.com>
Subject Re: Unable to read entire header
Date Tue, 22 Jun 2004 19:57:23 GMT
You can try to fix that code in POIFS. I have an open issue in bugzilla for
this very thing. I have encountered Office files that are not multiples of
512 that can be opened by their respective applications but get that error
when I try to open them with POIFS. I just haven't had time to fix it. I
looked at it and it seems pretty easy if you want to take a stab at it.

-Ryan


----- Original Message ----- 
From: "Troy McKinnon" <TroyMcKinnon@hotmail.com>
To: "POI Users List" <poi-user@jakarta.apache.org>
Sent: Tuesday, June 22, 2004 3:19 PM
Subject: Re: Unable to read entire header


> I tried JExcelAPI but it returns:
>
>    jxl.read.biff.BiffException: Unable to recognize OLE stream
>
> I am getting a bit desperate here. Anyone have any ideas how to blunt
force
> this with JOI or JExcel
>
> Thanks
>
> Troy
>
> ----- Original Message ----- 
> From: "Noah Campbell" <noahcampbell@gmail.com>
> To: "POI Users List" <poi-user@jakarta.apache.org>
> Sent: Tuesday, June 22, 2004 9:56 AM
> Subject: Re: Unable to read entire header
>
>
> You'll have to use JExcelAPI which supports 95 format.
>
> On Tue, 22 Jun 2004 09:05:20 -0700, Troy McKinnon
> <troymckinnon@hotmail.com> wrote:
> >
> > Could I somehow prepend the input stream?
> > Or so I have to find a solution other than POI?
> >
> > Troy
> >
> > ----- Original Message -----
> > From: "Koundinya (Sudhakar Chavali)" <sudhakar_koundinya@yahoo.com>
> > To: "POI Users List" <poi-user@jakarta.apache.org>
> > Sent: Tuesday, June 22, 2004 3:15 AM
> > Subject: RE: Unable to read entire header
> >
> > > POI will not support older versions of EXcel. That is the reason you
get
> > that problem,
> > >
> > > POI supported documents should start with following charachters
ÐÏࡱá
> >
> >
> > >
> > > Regards
> > > Sudhakar
> > >
> > >
> > > --- Parag.Ray@iflexsolutions.com wrote:
> > > > You may try separating the excel file first from the stream  then
read
> > > > it.
> > > >
> > > > -----Original Message-----
> > > > From: Troy McKinnon [mailto:TroyMcKinnon@hotmail.com]
> > > > Sent: Tuesday, June 22, 2004 11:54 AM
> > > > To: poi-user@jakarta.apache.org
> > > > Subject: Unable to read entire header
> > > >
> > > > I have a big problem, and I am hoping for an easy solution or
> > > > workaround.
> > > >
> > > > I am trying to read an excel file using POI, but I get the following
> > > > error:
> > > >
> > > > java.io.IOException: Unable to read entire header; 279 bytes read;
> > > > expected
> > > > 512 bytes
> > > >    at
> > > >
> org.apache.poi.poifs.storage.HeaderBlockReader.<init><HeaderBlockReader.
> > > > java
> > > > :78>
> > > >   ...
> > > >
> > > > If I open the file in excel and resave it.. all is good.
> Unfortunately
> > > > I
> > > > don't have this option.
> > > > Is there some way to work around this. I am receiving the file as an
> > > > InputStream via Http.
> > > >
> > > > Troy
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > =====
> > > "No one can earn a million dollars honestly."- William Jennings Bryan
> > (1860-1925)
> > >
> > > "Make everything as simple as possible, but not simpler."- Albert
> Einstein
> > (1879-1955)
> > >
> > > "It is dangerous to be sincere unless you are also stupid."- George
> > Bernard Shaw (1856-1950)
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Address AutoComplete - You start. We finish.
> > > http://promotions.yahoo.com/new_mail
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: poi-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: poi-user-help@jakarta.apache.org
>


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


Mime
View raw message