Base64GetBytes(String, Base64ParserOptions) Method

Converts a Base64-string into a corresponding Byte array and allows to pass options for the conversion.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static byte[] GetBytes(
	string? base64,
	Base64ParserOptions options
)

Parameters

base64  String
The String to convert, or null.
options  Base64ParserOptions
Options for the conversion.

Return Value

Byte
A Byte array decoded from base64.

Exceptions

FormatExceptionDepending on the conversion options specified with options, base64 cannot be converted into a Byte array .

See Also