|
CkData Reference
Docs: Certificate
Crypt
XML
Mail
MHT
S/MIME
Zip
SSL
RTC
Charset
CkStringArray
CkData
ChilkatCSP
Help
for Creating Objects in ASP
This control is part
of the Chilkat Util ActiveX, which is included with any product
that uses it.
The CkData object
is simply an object that holds a chunk of data, which may be binary
or text.
Download a Visual
Basic Example Program: ftp://www.chilkatsoft.com/CkDataExample.zip
Properties
- Base64LineLength As Long
read/write
- The line length to use when
accessing data to the Base64 format.
- Crlf As Boolean read/write
- If TRUE, CRLFs are used when
retrieving the data as a string, otherwise only CRs are used.
- Description As String read/write
- A description of what the data
contains. When a CkData object is returned by a Chilkat component,
such as with Chilkat Crypt for example, this will hold meaningful
information. Chilkat Crypt returns descriptions such as "digital
signature", "encrypted data", etc.
- Filename As String read/write
- If this data was loaded from
a file, this is the name of the file from which it came.
- NumBytes As Long read-only
- The number of bytes held by
this object.
Methods
Decrypt(cryptObject as ChilkatCrypt)
- Uses a Chilkat Crypt object
to decrypt the data. An error is raised if the data is not
successfully decrypted.
Encrypt(cryptObject as ChilkatCrypt)
- Uses a Chilkat Crypt object
to encrypt the data. An error is raised if the data is not
successfully encrypted.
GetBase64() As String
- Return the data in Base64
format
GetBinary() As Variant
- Return the binary data as an
array of bytes.
- GetChunk(fromIndex As Long,
numBytes As Long) As Variant
- Return a chunk of binary data,
beginning at fromIndex. The first byte is at index 0.
- GetQuotedPrintable() As String
- Return the data in quoted-printable
format.
- GetString() As String
- Return the data as a string.
WARNING: This does an implicit
conversion to Unicode from the ANSI code page. CkData assumes
it is holding single-byte character data, and is internally
calling the Windows MultibyteToWideChar Win32 function to convert
the data. If your CkData contains character data in other encodings,
such as utf-8, shift-jis, gb2312, euc-jp, iso-2022-jp, ...,
then you shouldn't call this method. Use GetBinary to retrieve
the character data unmodified.
- LoadBase64(base64Data As
String)
- Decodes from Base64 format and
loads the data.
- LoadBinary(binaryData As
Variant)
- Loads binary data.
- LoadFile(filename As String)
As Boolean
- Loads data from a file. Returns
TRUE for success, FALSE for failure.
- LoadQuotedPrintable(qpData
As String)
- Decodes from Quoted-Printable
format and loads the data.
- LoadString(data As String)
- Loads a string.
- RealTimeCompress(compressObject
as ChilkatRtCompress)
- Compresses the data using real-time
compression offered by a ChilkatRtCompress object. An error
is raised if not successful.
- RealTimeDecompress(compressObject
as ChilkatRtCompress)
- Decompresses the data using
real-time compression offered by a ChilkatRtCompress object.
An error is raised if not successful.
- SaveToFile(filename As String)
As Boolean
- Saves the data to a file. Returns
TRUE for success, FALSE for failure.
|
|
Privacy
Statement. Copyright 2000-2008 Chilkat
Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com Components for Microsoft Windows XP, 2000, 2003 Server, Vista, and Windows 95/98/NT4.
|
|