Android.Util.Base64.Decode Method
Decode the Base64-encoded data in input and return the data in a new byte array.

Syntax

[Android.Runtime.Register("decode", "(Ljava/lang/String;I)[B", "")]
public static byte[] Decode (string str, [Android.Runtime.GeneratedEnum] Base64Flags flags)

Parameters

str
the input String to decode, which is converted to bytes using the default charset
flags
controls certain features of the decoded output. Pass DEFAULT to decode standard Base64.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the input contains incorrect padding

Remarks

Decode the Base64-encoded data in input and return the data in a new byte array.

The padding '=' characters at the end are considered optional, but if any are present, there must be the correct number of them.

[Android Documentation]

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8