@Invalid header signature; read 1688935826934608, expected -2226271756974174256

今天在使用POI的HSSF读取excel的时候遇到了一个报错Invalid header signature; read 1688935826934608, expected -2226271756974174256

**原因:**HSSF读取的excel需要时xls后缀结尾的excel文件,虽然手动重命名将excel改成了xls后缀但是此文件本身还是xlsx类型的,所以报错。

解决:打开excel->另存为Invalid header signature; read 1688935826934608, expected -2226271756974174256
修改后在读取就ok了

相关文章:

  • 2021-08-04
  • 2021-08-24
  • 2021-10-02
  • 2021-06-15
  • 2021-06-01
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2021-05-07
相关资源
相似解决方案