Skip to Content
0
Former Member
Apr 13, 2010 at 05:49 AM

JXL Exception when uploading MS Office 2007 -Unable to recognize OLE stream

116 Views

Dear team,

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

Regards,

Shamila