Utf8JsonReader.TryGetBytesFromBase64 Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Utf8JsonReader.TryGet.cs
TryGetBytesFromBase64(ref byte[])
Parses the current JSON token value from the source and decodes the Base64 encoded JSON string as bytes. Returns true if the entire token value is encoded as valid Base64 text and can be successfully decoded to bytes. Returns false otherwise.
public bool TryGetBytesFromBase64(ref byte[] value)
Parameters
| Name | Type | Description |
|---|---|---|
value |
ref byte[] |
Returns
Exceptions
| Exception | Description |
|---|---|
InvalidOperationException |
Thrown if trying to get the value of a JSON token that is not a String. |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue