Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Downloads
.NET 2.0
.NET 1.*
.NET x64
VC++ 6.0
VC++ 7.0
VC++ 8.0
Java
Ruby
Perl 5.8.*
Perl 5.10.*
Python
Bounce ActiveX
Charset ActiveX
Email ActiveX
FTP2 ActiveX
Crypt ActiveX
HTML-to-XML ActiveX
HTTP ActiveX
IMAP ActiveX
MHT ActiveX
MIME ActiveX
RSA ActiveX
Socket ActiveX
Spider ActiveX (free)
String ActiveX (free)
Tar ActiveX
Upload ActiveX (free)
XML ActiveX (free)
XMP ActiveX
Zip ActiveX

Index of Chilkat Blog Posts

February 3, 2006

.NET Gzip examples

Here’s a quick synopsis of the Gzip functionality in Chilkat.NET:

Chilkat.Gzip gzip = new Chilkat.Gzip();
gzip.UnlockComponent("zip unlock code"); // Use your Chilkat Zip unlock code here…

// file-to-file compression.
gzip.CompressFile("myData.dat","myData.dat.gz");

// file-to-file uncompress
gzip.UncompressFile("myData.dat.gz","myData.dat");

// uncompress to the filename stored within the .gz:
gzip.UncompressFile("myData.dat.gz","");

// file-to-memory uncompress
byte [] uncompressedData = gzip.UncompressFileToMem("myData.dat.gz");

// memory-to-file compress
gzip.CompressMemToFile(uncompressedData,"myData.dat.gz");

// memory-to-memory compression
byte [] compressedData = gzip.CompressMemory(uncompressedData);

// memory-to-memory uncompress
byte [] uncompressedData2 = gzip.UncompressMemory(compressedData);

// memory-to-file uncompress
gzip.UncompressMemToFile(compressedData ,"myData.dat");

// file-to-memory compress
byte [] compressedData2 = gzip.CompressFileToMem("myData.dat");


Privacy Statement. Copyright 2000-2008 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, and Windows 95/98/NT4.