api

http4k / org.apache.commons.fileupload.util.mime / Base64Decoder / decode

decode

static fun decode(data: ByteArray!, out: OutputStream!): Unit

Decode the base 64 encoded byte data writing it to the given output stream, whitespace characters will be ignored.

Parameters

data - ByteArray!: the buffer containing the Base64-encoded data

out - OutputStream!: the output stream to hold the decoded bytes

Exceptions

IOException - thrown when the padding is incorrect or the input is truncated.