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. Web Development
  3. ASP.NET
  4. How to zip files in asp.net?

How to zip files in asp.net?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netsysadminhelp
2 Posts 2 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.
  • B Offline
    B Offline
    blakshmi
    wrote on last edited by
    #1

    I display a list of files on the screen, each with a checkbox next to it. At the bottom, there is a "Download" button that should allow the client users to download all the checked files to their computer. How can I do this bulk downloading (and having to ask the user to choose the location on their machine just once)? I havent found any posts on the internet that shows this is possible. Many suggest zipping up all the selected files first on the server, and then download that ZIP file. But how do I zip up files on the fly (programmatically in C#/ASP.NET)? Is there a .NET class that supports all these zip operations?? thanks for any help!

    Lakshmi

    N 1 Reply Last reply
    0
    • B blakshmi

      I display a list of files on the screen, each with a checkbox next to it. At the bottom, there is a "Download" button that should allow the client users to download all the checked files to their computer. How can I do this bulk downloading (and having to ask the user to choose the location on their machine just once)? I havent found any posts on the internet that shows this is possible. Many suggest zipping up all the selected files first on the server, and then download that ZIP file. But how do I zip up files on the fly (programmatically in C#/ASP.NET)? Is there a .NET class that supports all these zip operations?? thanks for any help!

      Lakshmi

      N Offline
      N Offline
      NeverHeardOfMe
      wrote on last edited by
      #2

      The SharpZip Library[^] is pretty good for this.

      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