當前位置:首頁 » 文件管理 » sharpziplib壓縮

sharpziplib壓縮

發布時間: 2024-10-26 08:35:39

『壹』 SharpZipLib壓縮文件,解壓zip文件時出現:文件末端錯誤

SharpZipLib壓縮文件,解壓zip文件時出現:文件末端錯誤
解決:在ZipOutputStream.Close()之後,它的輸出流數據才完整,因此在ZipOutputStream.Close()之後再來獲取數據。

原因分析:調用zipStream.Close()將會調用ZipStream.Finish() ,Finish說明:Finishes the stream. This will write the central directory at the end of the zip file and flush the stream.它將會寫入部分數據,這樣zip才是完整的。

熱點內容
java返回this 發布:2025-10-20 08:28:16 瀏覽:705
製作腳本網站 發布:2025-10-20 08:17:34 瀏覽:968
python中的init方法 發布:2025-10-20 08:17:33 瀏覽:676
圖案密碼什麼意思 發布:2025-10-20 08:16:56 瀏覽:828
怎麼清理微信視頻緩存 發布:2025-10-20 08:12:37 瀏覽:737
c語言編譯器怎麼看執行過程 發布:2025-10-20 08:00:32 瀏覽:1076
郵箱如何填寫發信伺服器 發布:2025-10-20 07:45:27 瀏覽:308
shell腳本入門案例 發布:2025-10-20 07:44:45 瀏覽:188
怎麼上傳照片瀏覽上傳 發布:2025-10-20 07:44:03 瀏覽:875
python股票數據獲取 發布:2025-10-20 07:39:44 瀏覽:829