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

 

 

 

 

 

 

 

Convert Base64 String to Bytes

Convert a Base64 string to a Visual Basic byte array.

Download Chilkat Crypt ActiveX

'  Byte array in Visual Basic 6.0
Dim arr() As Byte

Dim crypt As New ChilkatCrypt2

Dim success As Long
success = crypt.UnlockComponent("Anything for 30-day trial")
If (success <> 1) Then
    MsgBox crypt.LastErrorText
    Exit Sub
End If

'  Decode a hex string to a byte array:
Dim base64Str As String
base64Str = "AQIDBAUGBwgJCgsMDQ4P"
arr = crypt.Decode(base64Str,"base64")

'  
For i = LBound(arr) to UBound(arr)
    Print arr(i)
Next


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