开发者

Extract a ZipFile

开发者 https://www.devze.com 2022-12-21 03:32 出处:网络
How can Extract a ZipFile in 开发者_运维知识库C#? (ZipFile is include file and Directory)Use a tool for that. Something like SharpZip. As far as I know - .NET does not support ZIP files out of the box

How can Extract a ZipFile in 开发者_运维知识库C#? (ZipFile is include file and Directory)


Use a tool for that. Something like SharpZip. As far as I know - .NET does not support ZIP files out of the box.

From here =>

There are 2 problems with this class.
- It does not handle ZIP files.
- It is dysfunctional, can actually inflate data in "compression".
There's something wrong with the logic. It's a known problem but as yet unfixed.

So - if you need to work with ZIP files, gzipstream won't help. Otherwise - it should work fine.



As @Arnis L mentioned, will have problem unZipping .Zip files. Cannot use GZipStream to open a zip file, try

DotNetZip or CGZipLibrary.dll

0

精彩评论

暂无评论...
验证码 换一张
取 消