Base64GetBytes(String) Method

Converts the Base64-encoded String into a Byte array.

Definition

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

Parameters

base64  String
The string to convert, or null.

Return Value

Byte
A byte array decoded from base64.

Exceptions

FormatException

The length of base64 with ignored white space characters is not zero or a multiple of 4.

- oder -

The format of base64 is invalid. base64 contains a non-Base64 character, more than two padding characters, or a non-space character between the padding characters.

See Also