Use POI to parse Excel but got exception “Invalid Header Signature”

前端 未结 2 1009
半阙折子戏
半阙折子戏 2020-12-10 22:33

I was trying to use Apache POI (Version 3.6) to parse Excel .xls file, but got only Exception:

java.io.IOException: Invalid header signature; read 0x07B1FD12         


        
2条回答
  •  无人及你
    2020-12-10 23:31

    Just an idea, if you using maven make sure in the resource tag filtering is set to false. Otherwise maven tends to corrupt xls files in the copying phase in in your pom.xml

提交回复
热议问题