I am using POI api to read the Excel files. I am using the POi version 1.5.1. i am unable to read the excel file. it is giving the error as below. E:\jakarta_poi\supinfo>java ExcelTest Exception in thread "main" java.io.IOException: Invalid header signature; read 7 888090397404325948, expected -2226271756974174256 at org.apache.poi.poifs.storage.HeaderBlockReader.<init>(HeaderBlockRead er.java:124) at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init>(POIFSFileSyste m.java:120) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:1 75) at ExcelTest.main(ExcelTest.java:26)
Created attachment 12625 [details] Excel file to upload
It's not an Excel file. It's a workbook saved as HTML. If you open the attached file in Excel, then save it as a workbook (extension .xls), things will work much better. POI does not support reading Excel files which have been saved in non-.xls formats.