Results 1 to 13 of 13

Thread: Compression (ZIP) Library

Threaded View

  1. #1

    Thread Starter
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Compression (ZIP) Library

    The attached project is a library that wraps #ZipLib and provides a simple interface so you can compress to and extract from ZIP files with a single method call. I may put it in the UtilityBank eventually, but it's still a work in progress so I'll leave it here for now.

    Note that there are methods to compress a single file, a number of files and a folder, both recursively and not. There are also methods to extract all files, a single file or a number of selected files. At this point there is no facility to add files to an existing archive, but that will be added soon.

    Note that this library does nothing on its own. It requires the presence of #ZipLib, which you can download from here, to do the grunt work. The project contains a reference to #ZipLib but that will be broken when you try to use it. You will need to remove that reference and add a new one yourself once you have downloaded it.

    Feel free to use this code in full or in part in your own applications, but it must be in accordance with the #ZipLib licence. I will be making future updates, including what I mentioned earlier and support for other compression formats. Feel free to post any requests, suggestions or bug reports on this thread, but I make no guarantees about if and when they will be actioned.

    The attached project (VS.NET 2003 format) contains no binary files, so you will of course have to compile it before you use it. It also contains no sample project, as I think the exposed methods pretty much speak for themselves. Note that the root folder contains a documentation file named Wunnell.IO.Compression.chm that should tell you everything you need to know. If you have any issues feel free to post here, but again I make no guarantees about if and when I will be able to provide help.

    Enjoy!

    Updates:
    15092005: v1.0.0.1 - fixed bug in Zip.ExtractEntryByName and Zip.ExtractEntriesByName methods, updated documentation to include VB.NET syntax.
    Attached Files Attached Files
    Last edited by jmcilhinney; Aug 9th, 2008 at 09:11 PM.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width