xls vs xlsx(http://poi.apache.org/spreadsheet/quick-guide.html#NewWorkbook)
// Use a file
Workbook wb = WorkbookFactory.create(new File("MyExcel.xls"));
// Use an InputStream, needs more memory
Workbook wb = WorkbookFactory.create(new FileInputStream("MyExcel.xlsx"));
No comments:
Post a Comment