How to zip files in asp.net?
-
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
-
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
The SharpZip Library[^] is pretty good for this.