English 中文(简体)
伙伴关系的卷宗。 NET 没有使用自由的第三方解决办法
原标题:Zipping files in ASP.NET without using free third-party solutions

C#不使用自由的第三方解决办法而支持篡夺多个档案。 我知道有一些第三方解决办法,例如DotNet zip、SharpZipLib等......这样做,但我想在不使用上述任何手段的情况下创造解决办法。

我看到使用J#(vjslib.dll)我们可以使用GZip,但J#目前已经退休,没有列入VS2010。

您能否向我指出这一执行工作的正确位置?

最佳回答

There is always System.IO.Compression which features a class called GZipStream. The ability to write real *.zip files will only be added in .NET 4.5 (see System.IO.Compression in 4.5).

因此,现在,你要么试图写出自己的执行(不建议)或使用第三方部分。 根据该构成部分的许可,您可能能够将其守则复制到您的项目中(使该构成部分的拼凑成倍的麻烦)。 举例来说,《政府财产法》只要求你在分配你的衍生工作时公布你的来源代码。 但是,如果网络应用程序实际上没有编码或双亲,则使用通用公平市式图书馆不会造成任何后果。

问题回答

如果在任何时候都要改变你们的心情,你们想要自由的第三方选择,就认为这是你能够取得的最佳选择。

http://dotnetzip.codeplex.com/





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签