-2

There are plenty of examples of how to convert xlsx to csv. I would appreciate if someone show just a snippet of code of how to convert xlsx which is already in String and return csv in String[].

user1786605
  • 63
  • 1
  • 1
  • 7

1 Answers1

0

Apache POI already have example to convert csv format. ToCSV.java is good example. There is no build-in function. Otherwise, you have to write your own code. Convert .xls to csv file using apache poi

Community
  • 1
  • 1
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131
  • Sorry, I was not clear. My question is not how to convert xlsx to csv. I have xlsx already in String in memory. My question is how to open workbook and read xlsx from the String. – user1786605 Jun 03 '15 at 15:50