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. how to ZIP and UNZIP in C#

how to ZIP and UNZIP in C#

Scheduled Pinned Locked Moved C#
questioncsharptutorial
4 Posts 4 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.
  • E Offline
    E Offline
    E_Gold
    wrote on last edited by
    #1

    hi how can i zip and unzip file in C# code ? thank's

    V M S 3 Replies Last reply
    0
    • E E_Gold

      hi how can i zip and unzip file in C# code ? thank's

      V Offline
      V Offline
      VenkataRamana Gali
      wrote on last edited by
      #2

      depend onthe zipping/unzipping tool. use System.Diagnostics.Process class, through Process class execute the zipping executable with command line parameters. convert zipped/unzipped files to the stream & write into the hard disk? go it?

      Ramana

      1 Reply Last reply
      0
      • E E_Gold

        hi how can i zip and unzip file in C# code ? thank's

        M Offline
        M Offline
        Martin 0
        wrote on last edited by
        #3

        Hello, You could use "SharpZibLib", which is a part of the free "SharpDevelop" project! Can be downloaded (with examples) here![^]

        All the best, Martin

        1 Reply Last reply
        0
        • E E_Gold

          hi how can i zip and unzip file in C# code ? thank's

          S Offline
          S Offline
          Sandeep Kumar
          wrote on last edited by
          #4

          Hi..... By using GZipStream class you can compress and decompress the file..... GZipStream Example Link[^]

          Regards, Sandeep Kumar.V

          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