Creating Multi-file ZIP files in .NET 2005

Posted on 2006-04-28
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
    LVL 8

    Assisted Solution


    Go to this page 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

    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 85

    Assisted Solution

    by:Mike Tomlinson

        "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
    That is the utility for processing gz files.  I am curious if the implementation creates multiple files from a single .gz file.



    Author Comment


    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now