how to solve JXL error : jxl.read.biff.BiffException: Unable to recognize OLE stream

前端 未结 8 596
闹比i
闹比i 2021-01-04 00:57

i am trying to get cell data from my .csv file but it gets error : jxl.read.biff.BiffException: Unable to recognize OLE stream

I don\'t understand how to solve this

相关标签:
8条回答
  • 2021-01-04 01:39

    JXL library doesnot support .csv and .xslx formats, which is the format used by Excel-2010. hence, use Excel 97-2003 which is .xls foramatted and is supported by JXL library. or else if you want to use excel-2010, use APACHE POI(XSSFWorkbooks) instead of JXL. For using .csv format, google for CSVReader libraries.

    0 讨论(0)
  • 2021-01-04 01:40

    save the file as Excel 97-2003 and also change the file format from xlsx to xlx , in the code(in the file name)

    0 讨论(0)
  • 2021-01-04 01:44

    I was also facing this problem earlier. I googled and read this post and many other posts that were asking for solution to this BiffException. I don't have the exact solution but as I fixed my problem you can do it too, perhaps.

    I was trying to read data from the Excel file saved in MS Office 2010 and I was getting this error. I saved the file as an Excel 2003-7 and then read it without any problem. It may the case that this problem occurs in Office 10 but not in Office 2003-7.

    I hope this will work in your case.

    0 讨论(0)
  • 2021-01-04 01:47

    Saving File as "Excel 97-2003 Workbook" type solved my issue.

    0 讨论(0)
  • 2021-01-04 01:49

    Actually you are using different version of csv file .Please save it in the exact version.

    For ex: we should save the excel sheet in word as 9

    0 讨论(0)
  • 2021-01-04 01:54

    I was trying to read data from the Excel file saved in MS Office 2010 and I was getting this error. I saved the file as an Excel 2003-7 and then read it without any problem. It may the case that this problem occurs in Office 10 but not in Office 2003-7

    0 讨论(0)
提交回复
热议问题