java read Excel error: jxl.read.biff.BiffException: Unable to recognize OLE stream collection
exception information:
jxl.read.biff.BiffException: Unable to recognize OLE stream
at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:116)
at jxl.read.biff.File.<init>(File.java:127)
at jxl.Workbook.getWorkbook(Workbook.java:268)
at jxl.Workbook.getWorkbook(Workbook.java:253)
Solution: do not support excel2007, suffix xls, support office2003
1, the new excel file, manually copy the contents of the original file to a new file. Then delete the original file and change the file name of the original file new file. Then read success with jxl.
2, open the source file, just enter a few spaces and then deleted, then save
The Excel file is coming from, probably from a page to download, and this page do is to export Excel function, but do lazy, useless jxl and POI libraries, etc., but with the direct use of jsp generation html written. Re-built over a file on it.
Principle: Removal of part of the original non-text excel in error