Base64Encode
PowerScript function
Description
Encodes a blob value using Base64 encoder.
Applies to
CoderObject object
Syntax
|
1 |
coder.Base64Encode ( variable ) |
|
Argument |
Description |
|---|---|
|
coder |
The name of the CoderObject object. |
|
variable |
A blob whose value is the data you want to encode When using the system blob |
Return value
String. Returns the result of the encoding if it succeeds. If any
argument’s value is null, the method returns null. If an error occurs,
throw the exception.
Examples
This statement encodes the data using Base64 and returns the encoded
data.
|
1 2 3 4 5 6 7 8 9 |
Blob lblb_data String ls_Base64Str lblb_data = Blob("Test Base64", EncodingANSI!) CoderObject lnv_CoderObject lnv_CoderObject = Create CoderObject ls_Base64Str = lnv_CoderObject.Base64Encode(lblb_data) |
See also