FoxPro Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Bz2
Icon

 

Non-Chilkat Links
Text and String Handling

Decode Base64 MIME Body

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


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

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

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