HighTechTalks DotNet Forums  

Using System.IO.Compression.GZipStream to zip multiple files

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Using System.IO.Compression.GZipStream to zip multiple files in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nathan Sokalski
 
Posts: n/a

Default Using System.IO.Compression.GZipStream to zip multiple files - 12-12-2007 , 01:50 PM






I have an application in which I need to allow users to download multiple
files at once. All the sites I could find on the web when looking for help
suggested creating a zip file, and letting the users download that. This
would be fine, except for the fact that not all users will be downloading
the same files. I eventually found the System.IO.Compression.GZipStream
class, and have been trying to figure out how to zip multiple files into one
file. Can anybody help me here? Thanks.


Reply With Quote
  #2  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default RE: Using System.IO.Compression.GZipStream to zip multiple files - 12-12-2007 , 02:31 PM






The Framework GZipStream class does not support the File headers and
infrastructure necessary to build a multi-file "real" zip file. Use
ICsharpCode.SharpZiplib instead. It does, and it even supports zip passwords.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com


"Nathan Sokalski" wrote:

Quote:
I have an application in which I need to allow users to download multiple
files at once. All the sites I could find on the web when looking for help
suggested creating a zip file, and letting the users download that. This
would be fine, except for the fact that not all users will be downloading
the same files. I eventually found the System.IO.Compression.GZipStream
class, and have been trying to figure out how to zip multiple files into one
file. Can anybody help me here? Thanks.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.