Extensions for java.io.OutputStream
encodingWith
Returns an output stream that encodes bytes using the specified base64 encoding and writes the result to this output stream. Please refer to Base64 documentation for more details on the encoding itself.
fun OutputStream.encodingWith(base64: Base64): OutputStream