ASP Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++DelphiFoxProJavaPerlPythonRubySQL ServerVBScript

ASP Examples

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

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

Save String to .Z File Format (Unix Compress)

Download Chilkat Zip ActiveX

ASP script to save the contents of a string to a .Z file.

<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<%

' Create a .Z file (Unix Compress file format) directly from the contents
' of a string variable.
set z = Server.CreateObject("Chilkat.UnixCompress")

' The UnixCompress component is included in the "Chilkat Zip" license
z.UnlockComponent "anything for 30-day trial"

' Create a string that will be saved in a .Z format file.
s = ""
for i = 0 to 100
	s = s + "Hello World!" + vbcrlf
next

' Make sure ASP has write permission to the directory...
' The Unicode VB String is converted to Windows-1252 before compressing to create a .Z
z.CompressStringToFile s, "windows-1252", Server.MapPath("/data/helloWorld.txt.Z")

Response.Write "Done!"

%>
</body>
</html>
 

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

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