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]
