FoxPro Examples

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

Visual FoxPro Examples

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

More Examples...
Amazon S3
DKIM / DomainKey
NTLM
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA
FileAccess
Bzip2
LZW

 

Non-Chilkat Links
Text and String Handling

Decode Base64 MIME Body

Download Chilkat MIME ActiveX

Decoding a MIME body from Base64.

LOCAL loMime
LOCAL lnSuccess
LOCAL lcMimeStr1
LOCAL loMime2
LOCAL lcDecodedBody

loMime = CreateObject('Chilkat.Mime')

lnSuccess = loMime.UnlockComponent("Anything for 30-day trial")
IF (lnSuccess = 0) THEN
    =MESSAGEBOX("Failed to unlock component")
    QUIT
ENDIF

*  Create MIME with base64 encoding:
loMime.SetBodyFromPlainText("This is a test")
loMime.Charset = "windows-1252"
loMime.Encoding = "base64"

lcMimeStr1 = loMime.GetMime()

? lcMimeStr1
? "-------------------------------"

*  Output looks like this:
*  Content-Type: text/plain;
*           charset="windows-1252"
*  content-transfer-encoding: base64
* 
*  VGhpcyBpcyBhIHRlc3Q=

*  Load the MIME into another Chilkat MIME object:
loMime2 = CreateObject('Chilkat.Mime')
loMime2.LoadMime(lcMimeStr1)

*  Get the MIME body decoded:

lcDecodedBody = loMime2.GetBodyDecoded()

*  Prints: this is a test
? lcDecodedBody


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

Mail Component · .NET Email Component · ASP Mail Component · XML Parser