spring-framework / org.springframework.util / Base64Utils / encodeToString

encodeToString

open static fun encodeToString(src: ByteArray): String

Base64-encode the given byte array to a String.

Parameters

src - the original byte array (may be null)

Return
the encoded byte array as a UTF-8 String