Pin files in ASP.NET without using third-party solutions

Does C # support multiple file support without using third-party solutions. I knew there were third-party solutions like DotNet zip, SharpZipLib, etc .... did it, but I would like to create one without using any of the above.

I see the use of J # (vjslib.dll), we can use GZip, but J # is currently uninstalled and not included in VS2010.

Can you tell me the right place for this implementation?

+4
source share
2 answers

There is always a System.IO.Compression that has 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 ).

So, now you can either try to write your own implementation (not recommended) or use a third-party component. Depending on the component’s license, you can copy your code to your project (making patches for the component a bit cumbersome). For example, the GPL only needs to release the source code when distributing your derivative work. But in the case of a web application where no code or binary is actually transmitted, there are no consequences for using the GPL-ed library.

+9
source

If at some point your mind changes and you want to free a third-party option, I think this is the best you can get.

http://dotnetzip.codeplex.com/

+4
source

Source: https://habr.com/ru/post/1411895/


All Articles