How to create ZIP file using C#? How to compress and decompress files using C#?

http://moondash.co.in/?ref=85C19455999C

 Previously, we had to use some thrid party softwares or plugins to create ZIP archive files. Now in .NET Framework 4.5, new namespace is added. It is very simple and one line code. :)

  • System.IO.Compression
  • System.IO.Compression.FileSystem

 Some when we are having so many attachments to be downloaded all together. It is a better option to provide user that they can download all files in ZIP file. GMail also provides the same feature when we have more attachments.More...