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:
 cli::array <System::Byte> ^ GetBytesFromBase64();
public byte[] GetBytesFromBase64 ();
member this.GetBytesFromBase64 : unit -> byte[]
Public Function GetBytesFromBase64 () As Byte()

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

See also