library / org.akop.kotx.ext.basic / kotlin.ByteArray / toBase64String

toBase64String

fun ByteArray.toBase64String(flags: Int = Base64.NO_WRAP): String

Returns Base64 representation of the byte array by calling Base64.encodeToString with specified flags.

Parameters

flags - Flags to pass to Base64 encoder. Default is Base64.NO_WRAP.

Return
Base64 representation of the byte array.