Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Creating Multi-file ZIP files in .NET 2005

Posted on 2006-04-28
Medium Priority
Last Modified: 2008-02-01
I have seen the examples of the J# and ICSharp code for creating a ZIP archive with multiple files in it, but I was wondering if in .NET 2005 there were any new methods (maybe buried in System.IO.Compression?) that would let me do this.

If anyone has a small VB example I would be forever grateful.

Question by:SethCrews_1

Assisted Solution

Maher-Jendasi earned 300 total points
ID: 16565756

Go to this page http://msdn.microsoft.com/vstudio/downloads/101samples/default.aspx and download the "Base Class Libraries - Group 1 Samples" (VB version), these samples have a compression/decompresssion example that can help you.

BTW, this page also have many examples on various areas of .NET 2005
LVL 96

Accepted Solution

Bob Learned earned 400 total points
ID: 16566580
I was under the impression that the System.IO.Compression is the class that you use to duplicate the NTFS compression attribute, and not .zip compression.  I haven't found a .zip class, yet.

LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 300 total points
ID: 16566962

    "This class represents the gzip data format, which uses an industry standard algorithm for lossless file compression and decompression."

I haven't yet played with this class myself...what does that mean?  =)
LVL 96

Expert Comment

by:Bob Learned
ID: 16576944
That is the utility for processing gz files.  I am curious if the implementation creates multiple files from a single .gz file.



Author Comment

ID: 16579187

I think this is about as close as I'm going to get...


If anyone has seen anything else, i'd be interested.

Also, just to clarify,  I am not looking for GZip compression examples, rather I'm looking for example implementations of the .ZIP file format like is available in the Java runtime, but in the .NET 2.0 framework.

What I found at the link above implements the .ZIP format as a C# class, and it requires the new .Compression namespace in the .NET 2.0 Framework for the Compression.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question