Encodes a template in Base64 format.
| Prerequisites | The template array must be already allocated. The recommended size is GR_MAX_SIZE_TEMPLATE bytes. |
| Return | On success, the template quality code is returned. On failure, the appropriate error code is returned. |
| [in] buffer |
The template to be encoded. |
| [in] bufferSize |
The size in bytes of the supplied template. |
| [out] encodedBuffer |
The byte array in which the encoded template will be stored. |
| [in,out] encodedSize |
[in] The maximum size in bytes of the byte array supplied. |
C++ .NET
int EncodeBase64 (ref byte[] buffer, int bufferSize, ref byte[] encodedBuffer, ref int encodedSize);
C#
int EncodeBase64 (ref Array buffer, int bufferSize, ref Array encodedBuffer, ref int encodedSize);
VB6
Function EncodeBase64 (ByRef buffer() As Byte, ByVal bufferSize As Long, ByRef encodedBuffer() As Byte, ByRef encodedSize As Long) As Long
VB .NET
Function EncodeBase64 (ByRef buffer As Array, ByVal bufferSize As Integer, ByRef encodedBuffer As Array, ByRef encodedSize As Integer) As Integer
Delphi
function EncodeBase64(var buffer: PSafeArray; bufferSize: integer; var encodedBuffer: PSafeArray; var encodedSize: integer): integer;