ToBase64CharArray
Converts the value of a subset of a byte array to an equivalent
subset of a Unicode character array consisting of base 64 digits. Parameters specify
the subsets as offsets of the input and output arrays and the number of elements in the input array.
Public Function ToBase64CharArray(
ByRef InArray ( ) As Byte,
ByVal IndexIn As Long,
ByVal Length As Long,
ByRef OutArray ( ) As Integer,
ByVal IndexOut As Long,
Optional ByVal InsertLineBreaks As Boolean = False ) As Long
Parameters
- InArray
-
[ByRef]
Byte.
The bytes to be converted to a base-64 character array.
- IndexIn
-
[ByVal]
Long.
Offset within InArray to begin encoding to base-64 characters.
- Length
-
[ByVal]
Long.
The number of bytes to encode.
- OutArray
-
[ByRef]
Integer.
The output character array containing the base-64 characters.
- IndexOut
-
[ByVal]
Long.
The starting index in OutArray to place base-64 characters.
- InsertLineBreaks
-
[ByVal]
Optional.
Boolean.
Indicates if a vbCrLf should be inserted every 76 characters to
conform with MIME line formatting.
Default: False
Return Values
Long - The number of base-64 characters created.
Remarks
Added .NET 2.0 ability to insert linebreaks every 76 characters for MIME formatting.
See Also
Project CorLib Overview
Class Convert Overview