ASP Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

ASP Examples

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

More Examples...
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

ASP Script to Embed GIF Image in XML

Download Chilkat XML ActiveX

ASP script showing how to embed a GIF image in an XML document.

<%@ LANGUAGE="VBSCRIPT" %>

<%
    response.ContentType = "text/xml"
	
    ' Create an ASP XML parser object
    set xml0 = Server.CreateObject("Chilkat.Xml")

    ' Returns the XML page as a Variant
    set xml = xml0.HttpGet("http://www.xml-parser.com/companies.xml")

    ' Quickly locate the Chilkat record.
    set ckRec = xml.SearchForContent(Nothing, "name", "Chilkat*")
    If (not (ckRec is Nothing)) Then

        ' Move up to the record level.
        ckRec.GetParent2

        set gifNode = ckRec.NewChild("gif_image", "")

        ' The data can be optionally Zip compressed and/or AES encrypted.
        gifData = xml.GetURL("http://www.chilkatsoft.com/images/dude.gif","","","")
        
	    zipFlag = False
	    aesEncryptFlag = False
	    password = ""
        gifNode.SetBinaryContent zipFlag, aesEncryptFlag, password, gifData

    End If

    response.write xml.GetXml()
%>


 

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

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