Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Zip Compression in C#

Zip Compression in C#

Scheduled Pinned Locked Moved C#
csharpquestion
13 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RYU
    wrote on last edited by
    #1

    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 :)

    R G M P 5 Replies Last reply
    0
    • R RYU

      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 :)

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      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++]

      B 1 Reply Last reply
      0
      • R RYU

        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 :)

        G Offline
        G Offline
        Giorgi Dalakishvili
        wrote on last edited by
        #3

        You can try SharpZipLib[^] not sure about the speed though.

        Giorgi Dalakishvili #region signature my articles My blog[^] #endregion

        R 1 Reply Last reply
        0
        • R RYU

          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 :)

          M Offline
          M Offline
          Mirko1980
          wrote on last edited by
          #4

          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.

          R 1 Reply Last reply
          0
          • R RYU

            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 :)

            P Offline
            P Offline
            Programm3r
            wrote on last edited by
            #5

            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: ^_^

            R 1 Reply Last reply
            0
            • R Rajesh R Subramanian

              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++]

              B Offline
              B Offline
              blackjack2150
              wrote on last edited by
              #6

              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.

              R 1 Reply Last reply
              0
              • B blackjack2150

                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.

                R Offline
                R Offline
                Rajesh R Subramanian
                wrote on last edited by
                #7

                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++]

                R 1 Reply Last reply
                0
                • G Giorgi Dalakishvili

                  You can try SharpZipLib[^] not sure about the speed though.

                  Giorgi Dalakishvili #region signature my articles My blog[^] #endregion

                  R Offline
                  R Offline
                  RYU
                  wrote on last edited by
                  #8

                  Hi Giorgi, I have tried this. It is extremely slow for big files. But will try all other people suggestion tomorrow. Thanks for your help :)

                  1 Reply Last reply
                  0
                  • P Programm3r

                    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: ^_^

                    R Offline
                    R Offline
                    RYU
                    wrote on last edited by
                    #9

                    Yes!! That is exactly what I am looking for. I have to modify the code a little bit to support compression. Thanks Programm3r for your help :)

                    1 Reply Last reply
                    0
                    • M Mirko1980

                      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.

                      R Offline
                      R Offline
                      RYU
                      wrote on last edited by
                      #10

                      Hi Mirko, I have tested this class, it is very slow for big files. In fact, SharpZipLib is faster. But thanks though for this info. I have learned something new :) Cheers :)

                      1 Reply Last reply
                      0
                      • R Rajesh R Subramanian

                        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++]

                        R Offline
                        R Offline
                        RYU
                        wrote on last edited by
                        #11

                        Hi Rajesh, I tried the LZMA, but the compressed file can't be open in Winzip. Cheers :)

                        1 Reply Last reply
                        0
                        • R RYU

                          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 :)

                          G Offline
                          G Offline
                          Giorgi Dalakishvili
                          wrote on last edited by
                          #12

                          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

                          C 1 Reply Last reply
                          0
                          • G Giorgi Dalakishvili

                            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

                            C Offline
                            C Offline
                            Cheeso
                            wrote on last edited by
                            #13

                            Works great, very speedy, good compression, good features. Recommended!

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups