Utf8JsonReader.GetBytesFromBase64 Method


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

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



The byte array that represents the current JSON token value.


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.


The value contains invalid or more than two padding characters.


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

Applies to

See also