Base64.Decode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| Decode(Byte[], Base64Flags) |
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。 |
| Decode(String, Base64Flags) |
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。 |
| Decode(Byte[], Int32, Int32, Base64Flags) |
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。 |
Decode(Byte[], Base64Flags)
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。
[Android.Runtime.Register("decode", "([BI)[B", "")]
public static byte[]? Decode(byte[]? input, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("decode", "([BI)[B", "")>]
static member Decode : byte[] * Android.Util.Base64Flags -> byte[]
参数
- input
- Byte[]
要解码的输入数组
- flags
- Base64Flags
控制解码输出的某些功能。
传递给 DEFAULT 解码标准 Base64。
返回
新字节数组中解码的数据。
- 特性
例外
如果输入包含不正确的填充,则为
注解
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。
末尾的填充“=”字符被视为可选,但如果存在任何字符,则必须有正确的数字。
Java文档android.util.Base64.decode(byte[], int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
Decode(String, Base64Flags)
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。
[Android.Runtime.Register("decode", "(Ljava/lang/String;I)[B", "")]
public static byte[]? Decode(string? str, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("decode", "(Ljava/lang/String;I)[B", "")>]
static member Decode : string * Android.Util.Base64Flags -> byte[]
参数
- str
- String
要解码的输入字符串,该字符串使用默认字符集转换为字节
- flags
- Base64Flags
控制解码输出的某些功能。
传递给 DEFAULT 解码标准 Base64。
返回
新字节数组中解码的数据。
- 特性
例外
如果输入包含不正确的填充,则为
注解
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。
末尾的填充“=”字符被视为可选,但如果存在任何字符,则必须有正确的数字。
Java文档android.util.Base64.decode(java.lang.String, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
Decode(Byte[], Int32, Int32, Base64Flags)
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。
[Android.Runtime.Register("decode", "([BIII)[B", "")]
public static byte[]? Decode(byte[]? input, int offset, int len, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("decode", "([BIII)[B", "")>]
static member Decode : byte[] * int * int * Android.Util.Base64Flags -> byte[]
参数
- input
- Byte[]
要解码的数据
- offset
- Int32
输入数组中要从其开始的位置
- len
- Int32
要解码的输入字节数
- flags
- Base64Flags
控制解码输出的某些功能。
传递给 DEFAULT 解码标准 Base64。
返回
- 特性
例外
如果输入包含不正确的填充,则为
注解
在输入中解码 Base64 编码的数据,并在新的字节数组中返回数据。
末尾的填充“=”字符被视为可选,但如果存在任何字符,则必须有正确的数字。
Java文档android.util.Base64.decode(byte[], int, int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。