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. Programatically zip a file

Programatically zip a file

Scheduled Pinned Locked Moved C#
tutorialquestion
5 Posts 5 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.
  • G Offline
    G Offline
    Goalie35
    wrote on last edited by
    #1

    Does anyone know how to or know of a tutorial to programatically zip a file? I have a series of images that need to be able to be placed in a zip file so the user can download it to their hard drive. Manually zipping these files won't work in this situation. Thanks. -Goalie35

    L S 2 Replies Last reply
    0
    • G Goalie35

      Does anyone know how to or know of a tutorial to programatically zip a file? I have a series of images that need to be able to be placed in a zip file so the user can download it to their hard drive. Manually zipping these files won't work in this situation. Thanks. -Goalie35

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Use the SharpZipLib library regards

      N 1 Reply Last reply
      0
      • L Lost User

        Use the SharpZipLib library regards

        N Offline
        N Offline
        Nadia Monalisa
        wrote on last edited by
        #3

        Hi, I downloaded the library. But there are so many classes and interfaces, I got confused how to start using this library to create a zip file and simply add files into that. also how to unzip a single zip file. Is there any snippet available about the usage of this library ?

        E 1 Reply Last reply
        0
        • N Nadia Monalisa

          Hi, I downloaded the library. But there are so many classes and interfaces, I got confused how to start using this library to create a zip file and simply add files into that. also how to unzip a single zip file. Is there any snippet available about the usage of this library ?

          E Offline
          E Offline
          Ed Poore
          wrote on last edited by
          #4

          Probably on the #Develop website is the best bet

          1 Reply Last reply
          0
          • G Goalie35

            Does anyone know how to or know of a tutorial to programatically zip a file? I have a series of images that need to be able to be placed in a zip file so the user can download it to their hard drive. Manually zipping these files won't work in this situation. Thanks. -Goalie35

            S Offline
            S Offline
            Suelinda_W
            wrote on last edited by
            #5

            Hello, ComponentOne has Zip for .NET, which will allow you to programmatically zip and unzip files. If you install the product, there will some samples to show you how to work with it. For more information, please visit http://www.componentone.com/products.aspx?ItemType=1&TabTypeID=1&PanelIndex=14&TabMapID=310&Itemid=26&Tabid=435&SubCategoryTypeID=-1[^].

            Suelinda W Customer Engagement, ComponentOne LLC http:\\www.componentone.com

            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