Zip Compression in C#
-
Hi, I am looking at a way to do zip compression in C#. Is there any free library that do zip compression as fast as winzip? Thanks :)
In .NET 3.0 there is also a ZipPackage Class[^]. Is something more than just a zip file (Office 2007 documents are based on it), but can also be used to manage archive files. As the prevoius answers, I have no idea about its speed compared to WinZip.
-
Hi, I am looking at a way to do zip compression in C#. Is there any free library that do zip compression as fast as winzip? Thanks :)
Hi, This works for me: ZipStorer - A Pure C# Class to Store Files in Zip[^] Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's :bob: :)Programm3r My Blog: ^_^
-
Check out GZipStream in (System.IO.Compression) namespace[^]. The link page has a C# example as well. I don't know if that would be as fast as Winzip though. If you need more power, then do have a look at the [Trumpet music here] LZMA SDK[^]
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
GZipStream is very limited. If you have multiple files, after you archive them with GzipStream you will end up with a single file which has the same name as the archive.
-
GZipStream is very limited. If you have multiple files, after you archive them with GzipStream you will end up with a single file which has the same name as the archive.
May be, but that's the only thing that the .NET framework has to offer. So, my other suggestion was the LZMA SDK, which is one of the most powerful compression SDKs (isn't written on managed code though, but can be used from managed code).
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
You can try SharpZipLib[^] not sure about the speed though.
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion
-
Hi, This works for me: ZipStorer - A Pure C# Class to Store Files in Zip[^] Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's :bob: :)Programm3r My Blog: ^_^
-
In .NET 3.0 there is also a ZipPackage Class[^]. Is something more than just a zip file (Office 2007 documents are based on it), but can also be used to manage archive files. As the prevoius answers, I have no idea about its speed compared to WinZip.
-
May be, but that's the only thing that the .NET framework has to offer. So, my other suggestion was the LZMA SDK, which is one of the most powerful compression SDKs (isn't written on managed code though, but can be used from managed code).
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
Hi, I am looking at a way to do zip compression in C#. Is there any free library that do zip compression as fast as winzip? Thanks :)
Hello once again. Just found this: DotNetZip[^] looks quite powrfull. Any ideas about speed/compression?
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion
-
Hello once again. Just found this: DotNetZip[^] looks quite powrfull. Any ideas about speed/compression?
Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion