ASP.NET Download All Files as Zip

Posted by Ronnie Overby on Stack Overflow See other posts from Stack Overflow or by Ronnie Overby
Published on 2010-04-19T19:37:30Z Indexed on 2010/04/19 19:43 UTC
Read the original article Hit count: 362

Filed under:
|
|
|
|

I have a folder on my web server that has hundreds of mp3 files in it. I would like to provide the option for a user to download a zipped archive of every mp3 in the directory from a web page.

I want to compress the files programmatically only when needed. Because the zip file will be quite large, I am thinking that I will need to send the zip file to the response stream as it is being zipped, for performance reasons.

Is this possible? How can I do it?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET