Copy InputStream To OutputStream (Kotlin)

April 13, 2018
inputStream.use { input ->
    outputStream.use { output ->
        input.copyTo(output)
    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.