Click here to Skip to main content
Click here to Skip to main content

Tagged as

File Compression with ZipForge .NET Library

, 15 Dec 2007
Rate this:
Please Sign up or sign in to vote.
File Compression with ZipForge .NET Library

Introduction

Compression and De-Compression with ZipForge ZipForge.NET Library, Supported IDEs include Microsoft Visual Studio 2003, 2005.

Background

ZipForge does more than just compress and decompress data. Lots of algorithms can be used to compress the data files. For ex: Ace128,Ace192,Ace256 etc. Creating and managing a zip file is easy.

Compression of the Files

Blocks of code should be set as style "Formatted" like this:

ComponentAce.Compression.ZipForge.ZipForge zip = new ComponentAce.Compression.ZipForge.ZipForge();
zip.EncryptionAlgorithm = ComponentAce.Compression.Archiver.EncryptionAlgorithm.Aes128;
zip.FileName = "C:\\Download\\test.zip";  
zip.Password = "satyarapelly";
zip.OpenArchive(System.IO.FileMode.Create);
foreach (string inputFileName in inputFileNames)
{
   zip.AddFiles(inputFileName);
}
zip.CloseArchive();


		

De-Compression of the Files


ComponentAce.Compression.ZipForge.ZipForge zip = new ComponentAce.Compression.ZipForge.ZipForge();
zip.FileName = "C:\\Download\\test.zip";  
if (System.IO.File.Exists(zip.FileName))
   zip.OpenArchive(System.IO.FileMode.Open);

zip.BaseDir = textBox4.Text;
zip.Password = textBox2.Text;
zip.ExtractFiles("*.*");
zip.CloseArchive();

by Satya Rapelly

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

satya r
infosys
United States United States
No Biography provided
Follow on   Twitter

Comments and Discussions

 
GeneralLicence costs not explained!!! PinmemberRay Hayes15-Dec-07 11:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 15 Dec 2007
Article Copyright 2007 by satya r
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid