[已解决]NPOI Wrong Local header signature: 0x0;Your InputStream was neither an OLE2 stream, nor an OOXM
问题描述:1.xlsx文件用newXSSFWorkbook(stream);报错WrongLocalheadersignature:0x0;2.xlsx文件WorkbookFactory.Create(stream)报错YourInputStreamwasneitheranOLE2stream,noranOOXM问题原因:多次读文件至stream而stream.Position未恢复。varstr