ICSharpCode.SharpZipLib.Zip.ZipException: EOF in header

//异常提示:ICSharpCode.SharpZipLib.Zip.ZipException: EOF in header 

NPOIMemoryStream stream = new NPOIMemoryStream();
using (var fileStream = File.Open(filePath, FileMode.Open, FileAccess.ReadWrite))
{
    fileStream.CopyTo(stream);
    stream.Position = 0; //这一句不加就会上面的异常错误
}
IWorkbook wk = new NPOI.XSSF.UserModel.XSSFWorkbook(stream);

 

上一篇:获取执行计划之AWR


下一篇:【DB笔试面试826】在Oracle中,ASH和AWR的关系是什么?