https://issues.apache.org/bugzilla/show_bug.cgi?id=55614

            Bug ID: 55614
           Summary: Unable to
           Product: POI
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 30896
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30896&action=edit
A XLS file that fails on open attempt.

We are unable to open XLS files from a particular source - an example is
attached. The file will open in Excel. If it is re-saved then it can be opened
with POI. We are also able to open and read files from other sources. 

We have confirmed that this problem occurs in Windows, Linux and OSX. 

Error Details:

Code:

try {
   InputStream reader = file.createFileStream();
   Workbook workbook = WorkbookFactory.create(reader);
   processWorkbook(workbook);
   file.close();
}
catch (Exception e) {
   reportError("Could not parse Excel file");
}

Result: IllegalArgumentException
Message: Your InputStream was neither an OLE2 stream, nor an OOXML stream

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to