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

decode

open static fun decode(src: ByteArray): ByteArray

Base64-decode the given byte array.

Parameters

src - the encoded byte array

Exceptions

IllegalStateException - if Base64 encoding between byte arrays is not supported, i.e. neither Java 8 nor Apache Commons Codec is present at runtime

Return
the original byte array