JXL Exception when uploading MS Office 2007 -Unable to recognize OLE stream
I am trying to upload an excel file using jxl jar , using the below code,
InputStream bais =wdContext.currentContextElement().getQuestionsetUpload().read(true); Workbook workbook = Workbook.getWorkbook(bais); Sheet sheet = workbook.getSheet(0);
But i am getting an execption jxl.read.biff.BiffException: Unable to recognize OLE stream when i upload an excel file of Microsoft Office 2007 version.
Kindly help me in solving the exception