Hi, I am getting an invalid header error while trying to read from an excel file. The exception is: java.io.IOException: Unable to read entire header; -1 bytes read; expected 512 bytes at org.apache.poi.poifs.storage.HeaderBlockReader.<init> (HeaderBlockReader.java:78) at org.apache.poi.poifs.filesystem.POIFSFileSystem.<init> (POIFSFileSystem.java:83) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:210) at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init> (HSSFWorkbook.java:191)
Created attachment 13213 [details] Excel throwing the error
File opens fine in POI. Please check the stream that you are passing in to HSSFWorkbook.