ASP Examples

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

ASP Examples

ASP String
ASP Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
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...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

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)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set fac = Server.CreateObject("Chilkat.FileAccess")

'  The 2nd argument specifies the encoding and may
'  be "base64", "hex", "url", or "qp".
encodedStr = fac.ReadBinaryToEncoded("sample.pdf","base64")
If (encodedStr = vbNullString ) Then
    Response.Write "<pre>" & Server.HTMLEncode( fac.LastErrorText) & "</pre>"
Else
    Response.Write "<pre>" & Server.HTMLEncode( encodedStr) & "</pre>"
End If

%>
</body>
</html>

 

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