xls - java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream -
when i'm reading excel file(.xls format), keep getting exception : java.lang.illegalargumentexception: input stream neither ole 2 stream, nor ooxml stream. i go-ogled , found if input stream not supporting reset or mark, should wrap pushbackstream . input stream not mark\reset supported. so using pushbackstream option? how use it? , whats use of it? thanks your inputstream neither ole2 stream, nor ooxml stream java.lang.illegalargumentexception: inputstream neither ole2 stream, nor ooxml stream i guess using workbook factory or different format input file , different workbook type. error pops when not able not able read file type. apache poi not check file extension. if open in text editor, you'll see instead it'll in different format. or might initializing workbook type hssf or xssf, before using workbook factory. simpler solution open file using microsoft excel , save file(using file>save option microsoft excel > menu ). workbook factory...