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" <[EMAIL PROTECTED]> To: "POI Users List" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: "POI Users List" <[EMAIL PROTECTED]> > 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 > <[EMAIL PROTECTED]> 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)" <[EMAIL PROTECTED]> > > To: "POI Users List" <[EMAIL PROTECTED]> > > 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 > > > > > > > > > --- [EMAIL PROTECTED] wrote: > > > > You may try separating the excel file first from the stream then read > > > > it. > > > > > > > > -----Original Message----- > > > > From: Troy McKinnon [mailto:[EMAIL PROTECTED] > > > > Sent: Tuesday, June 22, 2004 11:54 AM > > > > To: [EMAIL PROTECTED] > > > > 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: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > ===== > > > "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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
