Base64.Encode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Encode(Byte[], Base64Flags) |
Base64-encode the given data and return a newly allocated byte[] with the result. |
Encode(Byte[], Int32, Int32, Base64Flags) |
Base64-encode the given data and return a newly allocated byte[] with the result. |
Encode(Byte[], Base64Flags)
Base64-encode the given data and return a newly allocated byte[] with the result.
[Android.Runtime.Register("encode", "([BI)[B", "")]
public static byte[]? Encode (byte[]? input, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("encode", "([BI)[B", "")>]
static member Encode : byte[] * Android.Util.Base64Flags -> byte[]
Parameters
- input
- Byte[]
the data to encode
- flags
- Base64Flags
controls certain features of the encoded output.
Passing DEFAULT
results in output that
adheres to RFC 2045.
Returns
- Attributes
Remarks
Base64-encode the given data and return a newly allocated byte[] with the result.
Java documentation for android.util.Base64.encode(byte[], int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Encode(Byte[], Int32, Int32, Base64Flags)
Base64-encode the given data and return a newly allocated byte[] with the result.
[Android.Runtime.Register("encode", "([BIII)[B", "")]
public static byte[]? Encode (byte[]? input, int offset, int len, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("encode", "([BIII)[B", "")>]
static member Encode : byte[] * int * int * Android.Util.Base64Flags -> byte[]
Parameters
- input
- Byte[]
the data to encode
- offset
- Int32
the position within the input array at which to start
- len
- Int32
the number of bytes of input to encode
- flags
- Base64Flags
controls certain features of the encoded output.
Passing DEFAULT
results in output that
adheres to RFC 2045.
Returns
- Attributes
Remarks
Base64-encode the given data and return a newly allocated byte[] with the result.
Java documentation for android.util.Base64.encode(byte[], int, int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.