如何在.net中解压缩文件 [英] How to unzip a file in .net

查看:88
本文介绍了如何在.net中解压缩文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用C#,asp.net解压缩文件.

我不想使用任何第三方工具.

每当我单击特定链接(www.xxxxx.com/xxxxx.zip)时,它应自动解压缩到特定文件夹.

在此先感谢

I want to unzip a file using C#, asp.net.

I dont want to use any third party tool.

Whenever I click on particular link (www.xxxxx.com/xxxxx.zip) it should automatically extract to a particular folder.

Thanks in advance

推荐答案

您可以使用SharpZipLib:
http://www.icsharpcode.net/OpenSource/SharpZipLib/ [
You may use SharpZipLib:
http://www.icsharpcode.net/OpenSource/SharpZipLib/[^]
Or, if you really do not want to use any external code, then you should write the compression / decompression algorithms yourself.


请看看名称空间System.IO.Compression .


您可以从其站点下载SharpZipLib的全部源代码.然后在Visual Studio中打开它并对其进行研究!
You can download the whole source code for SharpZipLib from their site. Then open it in Visual Studio and study it!


这篇关于如何在.net中解压缩文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆