Visual Basic Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VB Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Unicode
Upload
XML
XMP
Zip Compression

More Examples...
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

GZip and Un-GZip a File

Download Chilkat Zip ActiveX (includes objects for .zip, .gz, .bz2, and .Z)

Visual Basic 6.0 example to GZip and un-GZip a file.

    ' Add a reference to the Chilkat GZip component in your VB6 project.
    ' The GZip component is included in the "Chilkat Zip" license
    Dim gz As New Gzip
    gz.UnlockComponent "Anything for 30-day trial"
    
    ' The GZip file format is not an archive that contains many
    ' files, such as .zip or .tar.  It is a file format that compresses
    ' a single file.
    fname = "test.txt"
    
    ' Compress the file, creating an output file with the original
    ' filename + ".gz"
    gz.CompressFile fname, fname & ".gz"
    
    ' To ungzip, we do this:
    gz.UncompressFile fname & ".gz", "output.txt"
    

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.