Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:57:07+00:00 2026-06-09T05:57:07+00:00

I was trying to use Apache POI (Version 3.6) to parse Excel .xls file,

  • 0

I was trying to use Apache POI (Version 3.6) to parse Excel .xls file, but got only Exception:

java.io.IOException: Invalid header signature; read 0x07B1FD124BEDF108, expected 0xE11AB1A1E011CFD0

I have Googled some result, which basically said that “The file is actually not a valid excel file (i.e. .csv and so on) but ended with the suffix .xls”. But I’m quite sure that my excel file is valid (in Excel97-2003 format).

For secrecy considerations, I couldn’t post my excel, but when I use emacs hexl-mode to view this binary excel file, the header is:

D0CF 11E0 A1B1 1AE1

I think it is just what POI expected (E11AB1A1E011CFD0, but in big-endian). But why I got the exception?

BTW, if I use vim with command %!xxd to view the same excel file, I got a header different from eamcs:

C390 C38F 11C3 A0C2

And the whole binary file seems totally different. I cannot understand.

Thanks for any of your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:57:08+00:00Added an answer on June 9, 2026 at 5:57 am

    If you get that exception, then your file really isn’t a true .xls file. It will instead either be some other file, renamed to have a .xls extension, or a corrupted file.

    I’d suggest you try opening the file in Excel, and do a Save-As. That may give you a hint as to the file type. If not, do a save-as as Excel .xls, and then you’ll be able to open that file

    I don’t know what you file is (I don’t recognise the header), but I can assure you that it isn’t an OLE2 header as a valid .xls file would have.

    It’s possible that Apache Tika may be able to work out what kind of binary file it is, so you could always try with the Tika-App jar

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Apache POI to read in old (pre-2007 and XLS)
I am trying to use org.apache.commons.collections.CollectionUtils in android with following code import java.util.ArrayList; import
I'm trying to use Apache Commons Net for FTP file transfers. Problem is files
Trying to use Apache POI in a Eclipse JSP project. The POI jar is
Im trying to use apache HttpClient 4.1.2 but the debugger shows org.apache.http.client.httpclient is abstract;
I'm trying to use Apache Digester (V3) to process an XML file which contains
I'm trying to use SlideShow to create presentation... http://poi.apache.org/apidocs/org/apache/poi/hslf/usermodel/SlideShow.html and I see some uses
I am trying to use the Apache Java library SystemUtils to determine the operating
I am trying to use Apache POI to extract embedded equation and text from
I am trying to use Apache Commons Math's SpearmansCorrelation but I am having some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.