What is the best API to read large excel files using Java?

ashishjmeshram picture ashishjmeshram · Feb 14, 2012 · Viewed 13.1k times · Source

I need to read large excel sheets using Java. The Excel sheet may be .xls or .xlsx. The sheet may have thousands of rows. I have to read all rows and insert that row in the database.

So basically read from Excel and write in database.

The APIs that I am considering are POI and JExcel API (After googling and reading some other related articles in SO).

But I am still not sure as to what is the most appropriate way of reading very large Excel sheets.

I don't want to have any memory issues later on.

Edit 1:

Also, from what I have searched so far it seems that JExcel does not support .xlsx formats.

Please suggest.

Answer

jpstrube picture jpstrube · Feb 14, 2012

We are reading Excel files of that size using Apache POI without problems.