VoltoB64
Base64 Codec Component


Introduction
User Guide
Technical Reference
Download
Buy a License
Other Volto Components

    
General Information
Product Name VoltoB64 Base64 Codec Component
Function Encodes to, and decodes from Base64 format
File Name VoltoB64.DLL
File Size 88.0KB (90,112 bytes)
Current Version V1.0-3
Revision Date 08-AUG-2001
Release Date 16-NOV-2000
Component Type ActiveX DLL
ProgID VoltoB64.B64
CLSID 6E8182B6-7CF5-11D4-A646-00105A4907E2
DLL Base Address &H41050000
Prerequisites Visual Basic 6.0 runtime
License Price: $19.95

Properties
InputString

Sets a string value to be encoded or decoded using the EncodeB64 or DecodeB64 methods.

Syntax

object.InputString [= stringdata]

The InputString property has the following parts:

PartDescription
object An instance of the VoltoB64 control.
stringdata String value to be encoded or decoded.




OutputBytes

Following a call to either the Encode64 or Decode64 methods, returns a value representing the length of the encoded or decoded output string.

Syntax

object.OutputBytes



OutputString

Following a call to either the Encode64 or Decode64 methods, returns a string containing encoded or decoded data.

Syntax

object.OutputString


Errors

If the output buffer is empty, the following error will be raised when reading the OutputString property:

Error Description
12003 Output buffer is empty


Methods
DecodeB64

Decodes a Base64-encoded string. Before calling this method, set the string to be decoded by either setting the InputString property or calling the FileLoad method.

Syntax

object.DecodeB64


Errors

If no input data is specified, the following error will be raised by the DecodeB64 method:

Error Description
12001 No data to decode




EncodeB64

Encodes a string to the Base64 format. Before calling this method, set the string to be encoded by either setting the InputString property or calling the FileLoad method.

Syntax

object.EncodeB64


Errors

If no input data is specified, the following error will be raised by the EncodeB64 method:

Error Description
12002 No data to encode




FileLoad

Loads the contents of a file to be encoded or decoded.

Syntax

object.FileLoad (FileName)

The FileLoad method has the following parts:

Part Description
object An instance of the VoltoB64 control.
FileName Required. String value specifying the path to a file whose contents is to be loaded.

Errors

If the file can not be loaded the following error will be raised by the FileLoad method:

Error Description
12004 Error loading file




FileSave

After calling the Encode64 or DecodeB64 methods, saves the encoded or decoded data into a file.

Syntax

object.FileSave (FileName)

The FileSave method has the following parts:

Part Description
object An instance of the VoltoB64 control.
FileName Required. String value specifying the path to a file where the encoded or decoded data is to be saved.

Errors

The following errors may be raised by the FileSave method:

Error Description
12003 Output buffer is empty
12004 Error creating output file




ProductLicense

Unlocks full component functionality when a valid Serial Number and License Key pair is given. The Serial Number and License Key, together with a license file, are provided when purchasing a license for this component.

Syntax

object.ProductLicense (SerialNo, LicenseKey)

The ProductLicense method has the following parts:

Part Description
object An instance of the VoltoB64 control.
SerialNo String value specifying a valid Serial Number.
LicenseKey String value specifying a valid License Key.

Return Value

Returns true if a valid Serial Number and License Key was specified. Otherwise, returns False.

Remarks

Call this method once only, immediately after creating the object, in order to unlock full component functionality. If you do not make a successful call to this method, then only restricted, evaluation mode functionality will be available.

Note that the license file provided to licensed users must be present in the same directory as that in which the component has been installed. This file must also be distributed with compiled applications and copied to the appropriate directory by the application's setup utility.





© Copyright 2005 VOLTO.COM