This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to recognize OLE stream while upload CSV  RSS feed

 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am getting the below exception while uploading the csv file. Please provide your inputs

jxl.read.biff.BiffException: Unable to recognize OLE stream
at jxl.read.biff.CompoundFile.<init>(CompoundFile.java:111)
at jxl.read.biff.File.<init>(File.java:113)
at jxl.Workbook.getWorkbook(Workbook.java:250)
at jxl.Workbook.getWorkbook(Workbook.java:235)
at
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15861
81
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you are using an API to read Excel documents (*.xls), which you are trying to use to read a CSV file.

CSV files are not in the same format as *.xls files. You can't use an API that expects a file in *.xls format to read a CSV file.
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using JExcelAPI (JXL) for reading CSV files? JXL is meant for Excel (.xls) files. Use a proper CSV library for reading CSV files; you can find several on our AccessingFileFormats FAQ page. And yes, I am aware that they are grouped under Excel there, but that's because Excel is usually the default application for CSV files. That doesn't make them proper Excel files.
 
Ragupathirajan Venkatesan
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friend,

Thanks a lot for your reply. It really helps me. I will look at the possible library to read csv and comeback if any issue. Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!