Convert String To InputStream (Kotlin)

April 13, 2018
val input = "This is a String"
val inputStream = ByteArrayInputStream(input.toByteArray(Charsets.UTF_8))
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.