Visual Basic Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB Examples

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

More Examples...
Amazon S3
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 .Z Uncompress to Memory

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

Download All 32-bit Chilkat ActiveX Components (.zip)

Download All 64-bit Chilkat ActiveX Components (.zip)

Visual Basic example to create .Z and .gz files from the contents of a string variable.

    ' Uncompress a .Z file directly into a string.
    Dim z As New UnixCompress
    z.UnlockComponent "anything for 30-day trial"
    myText = z.UncompressFileToString("helloWorld.txt.Z", "windows-1252")
    MsgBox myText
    
    ' Un-GZip a .gz file directly into memory.
    Dim gzip As New gzip
    gzip.UnlockComponent "anything for 30-day trial"
    myText = gzip.UncompressFileToString("helloWorld.txt.gz", "windows-1252")
    MsgBox myText
    
    ' Uncompress a binary file (MS-Word document) to a Variant
    Dim wordDocument As Variant
    wordDocument = z.UncompressFileToMem("faxCover.doc.Z")
    z.WriteFile "faxCover.doc", wordDocument
    ' We could have simply done this:
    z.UncompressFile "faxCover.doc.Z", "faxCover2.doc"
    
    wordDocument = gzip.UncompressFileToMem("faxCover.doc.gz")
    gzip.WriteFile "faxCover.doc", wordDocument
    ' We could have simply done this:
    gzip.UncompressFile "faxCover.doc.gz", "faxCover2.doc"
    

 

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