Version: 2.1.0.2
Easily add Zip capability to your .NET Windows or ASP.NET application without sacrificing power and flexibility.
That the Archive component can create self-extracting exe files that aren't dependent on any unzip utility?
The Archive component provides a means for creating self-extracting archives. The resulting exe files are customizable to fit your needs.
Code Sample:
//Store all text files in the Test directory in a self-extracting archive
archive1.Add("c:\\Test\\*.txt");
archive1.SelfExtractConfiguration = new Dart.PowerTCP.Zip.SelfExtractConfiguration("My Self-Extracting Archive", "", true, Overwrite.Always, true, true, true);
archive1.Zip("c:\\test.exe");
Back to Top
That the Archive component can encrypt compressed files using AES encryption?
The Archive component’s AES implementation is fully compatible with WinZip 9.0.
Code Sample:
//Archive all text files in the Test directory using AES encryption
archive1.DefaultEncryption = Dart.PowerTCP.Zip.Encryption.Aes256Bit;
archive1.Password = "myPassword!";
archive1.QuickZip("c:\\Test\\*.txt", "c:\\test.zip");
Back to Top
That the Archive component is a collection of files and memory buffers that can consist of both compressed and uncompressed data?
The archive component can be used to store compressed or non-compressed data, and can store data in memory in addition to files.
Code Sample:
//Add a non-compressed file to the archive
ArchiveItem item = new ArchiveItem("c:\\Test\\myFile.txt");
item.CompressionMethod = CompressionMethod.Store;
archive1.Add(item);
			
//Add a compressed data stream to the archive
System.IO.MemoryStream stream = new System.IO.MemoryStream();
string s = "This is my data in memory!";
stream.Write(System.Text.Encoding.Default.GetBytes(s), 0, s.Length);
item = new ArchiveItem(stream);
item.CompressionMethod = CompressionMethod.Deflate;
archive1.Add(item);
stream.Close();

//Save the archive to disk
archive1.Zip("c:\\Test\\test.zip");
Back to Top