ToBase64String()

Convert::ToBase64String(const ArrayPtr<uint8_t>&, bool) method

Base-64 encodes elements in the specified byte array and returns the encoded data as a string.

static String System::Convert::ToBase64String(const ArrayPtr<uint8_t> &in_array, bool insert_line_breaks=false)

Arguments

ParameterTypeDescription
in_arrayconst ArrayPtr<uint8_t>&The array of bytes to encode
insert_line_breaksboolSpecifies whether line break characters are to be inserted in the output string after every 76 base-64 characters

Return Value

The string containing the base-64 encoded representation of the input array

Convert::ToBase64String(const ArrayPtr<uint8_t>&, int, int, bool) method

Base-64 encodes a range of elements in the specified byte array and returns the encoded data as a string.

static String System::Convert::ToBase64String(const ArrayPtr<uint8_t> &in_array, int offset_in, int length, bool insert_line_breaks=false)

Arguments

ParameterTypeDescription
in_arrayconst ArrayPtr<uint8_t>&The array of bytes containing the range of elements to encode
offset_inintAn index of an element in the input array at which the range to encode begins
lengthintThe length of the range of elements to encode
insert_line_breaksboolSpecifies whether line break characters are to be inserted in the output string after every 76 base-64 characters

Return Value

The string containing the base-64 encoded representation of the range of elements of the input array

Convert::ToBase64String(const ArrayPtr<uint8_t>&, Base64FormattingOptions) method

Base-64 encodes elements in the specified byte array and returns the encoded data as a string.

static String System::Convert::ToBase64String(const ArrayPtr<uint8_t> &in_array, Base64FormattingOptions options)

Arguments

ParameterTypeDescription
in_arrayconst ArrayPtr<uint8_t>&The array of bytes to encode
optionsBase64FormattingOptionsSpecifies formatting options of base-64 encoded data

Return Value

The string containing the base-64 encoded representation of the input array

Convert::ToBase64String(const ArrayPtr<uint8_t>&, int, int, Base64FormattingOptions) method

Base-64 encodes a range of elements in the specified byte array and returns the encoded data as a string.

static String System::Convert::ToBase64String(const ArrayPtr<uint8_t> &in_array, int offset_in, int length, Base64FormattingOptions options)

Arguments

ParameterTypeDescription
in_arrayconst ArrayPtr<uint8_t>&The array of bytes containing the range of elements to encode
offset_inintAn index of an element in the input array at which the range to encode begins
lengthintThe length of the range of elements to encode
optionsBase64FormattingOptionsSpecifies formatting options of base-64 encoded data

Return Value

The string containing the base-64 encoded representation of the range of elements of the input array

See Also