is there any built-in util method from converting ...
# getting-started
t
is there any built-in util method from converting an outputstream to an inputstream?
s
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/ 🔝 available I/O API in Kotlin (plus the Java APIs) By converting output stream to input stream do you mean transmitting the data received from the input to the output ? If so you could do something like:
Copy code
input.copyTo(output)
t
the other way around 🙂
i have an outputstream that i need to make available to a method that expects an inputstream
😕 1