The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with

The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF)

Scenario: easyExcel reports an error when importing, and Baidu finds out that the .xls file suffix is ​​manually modified to .xlsx, and poi recognition reports an error

Solution: Save .xls as .xlsx instead of manually modifying the suffix

Guess you like

Origin blog.csdn.net/Ellis_li/article/details/131322508