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

 

 

 

 

 

 

 

Load Binary File to an Encoded String

Demonstrates how to load a binary file directly into a string encoded as base64, hex, URL, quoted-printable, etc.

Download Chilkat FileAccess ActiveX (freeware)

Dim fac As New CkFileAccess

Dim encodedStr As String

'  The 2nd argument specifies the encoding and may
'  be "base64", "hex", "url", or "qp".
encodedStr = fac.ReadBinaryToEncoded("sample.pdf","base64")
If (encodedStr = vbNullString ) Then
    Text1.Text = Text1.Text & fac.LastErrorText & vbCrLf
Else
    Text1.Text = Text1.Text & encodedStr & vbCrLf
End If

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