Base64.Decode 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。