Answered by:
How to Zip files within a folder?

Question
-
In my application multiple reports are generated and saved on server. I want to zip all these reports and keep a link on webpage so that user can download this zip. But I am not able to figure out a way to zip the files programatically..Please help me...thanks in advance..Monday, January 22, 2007 12:15 PM
Answers
-
Hi guys, thanks for your reply...I got a way to do it...I first created a zip file and then copied all the reports in it...Tuesday, January 23, 2007 8:44 AM
All replies
-
You can use free component SharpZipLib
Monday, January 22, 2007 1:53 PM -
Hi,
if you are using .Net 2.0 or above you can use the System.IO.Compression.GZipStream to compress/decompress your data, see: http://msdn2.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx
Mark.
Monday, January 22, 2007 4:18 PM -
You can use http://www.icsharpcode.net/OpenSource/SharpZipLib/ free open source component for archiving and compressing multiple file into a single file compatible with Zip, Tar etc.
Best Regards,
Rizwan aka RizwanSharp
Monday, January 22, 2007 5:56 PM -
Hi guys, thanks for your reply...I got a way to do it...I first created a zip file and then copied all the reports in it...Tuesday, January 23, 2007 8:44 AM
-
I have written code to zip multiple files and entire folders and published the following article that may be helpful to you:
Friday, June 29, 2007 3:34 PM -
These is a better way to zip multiple files and folders is using Ultimate Zip Component . You can control the file compression via events. It also provides you some additional features that help you to compress/decompress files easilySunday, March 14, 2010 10:43 PM
-
These is a better way to zip multiple files and folders is using Ultimate Zip Component . You can control the file compression via events. It also provides you some additional features that help you to compress/decompress files easily
Curious. What do you get paid to personally spam these threads? Doing almost anything else would be more profitable.Sunday, March 14, 2010 10:59 PM