Utf8JsonReader.GetBytesFromBase64 Method

Definition

Parses the current JSON token value from the source and decodes the Base64 encoded JSON string as a byte array.

public byte[] GetBytesFromBase64 ();

Returns

Byte[]

The byte array that represents the current JSON token value.

Exceptions

The type of the JSON token is not a String.

The value is not encoded as Base64 text, so it can't be decoded to bytes.

-or-

The value contains invalid or more than two padding characters.

-or-

The value is incomplete. That is, the JSON string length is not a multiple of 4.

Applies to

Produkt Verze
.NET Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

See also