Udostępnij za pośrednictwem


Base64.EncodeToString Method

Definition

Overloads

EncodeToString(Byte[], Int32, Int32, Base64Flags)

Base64-encode the given data and return a newly allocated String with the result.

EncodeToString(Byte[], Base64Flags)

Base64-encode the given data and return a newly allocated String with the result.

EncodeToString(Byte[], Int32, Int32, Base64Flags)

Base64-encode the given data and return a newly allocated String with the result.

[Android.Runtime.Register("encodeToString", "([BIII)Ljava/lang/String;", "")]
public static string? EncodeToString (byte[]? input, int offset, int len, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("encodeToString", "([BIII)Ljava/lang/String;", "")>]
static member EncodeToString : byte[] * int * int * Android.Util.Base64Flags -> string

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 String with the result.

Java documentation for android.util.Base64.encodeToString(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.

Applies to

EncodeToString(Byte[], Base64Flags)

Base64-encode the given data and return a newly allocated String with the result.

[Android.Runtime.Register("encodeToString", "([BI)Ljava/lang/String;", "")]
public static string? EncodeToString (byte[]? input, Android.Util.Base64Flags flags);
[<Android.Runtime.Register("encodeToString", "([BI)Ljava/lang/String;", "")>]
static member EncodeToString : byte[] * Android.Util.Base64Flags -> string

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 String with the result.

Java documentation for android.util.Base64.encodeToString(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