Zip files from URL

Aug 25, 2011 at 5:04 AM


  I have files located at some urls.I have to zip these files and download the zipped the file in client's location.How can i do that with DotNetZip Library.

DitNetZip Library is not accepting URLs.Can you suggest me what should we do.


Thanks n Regards,



Aug 25, 2011 at 3:24 PM

I think you are asking about ZipFile.AddEntry().  You didn't say so;  I'm guessing here.

DotNetZip accepts streams as sources for the data for an entry in the zip archive.

My suggestion is to open a stream that reads from the URL., and pass that stream to ZipFile.AddEntry(). 

If I guessed wrong, and you're asking about something else, you'll need to be more specific.

good luck.