is there any built-in util method from converting an outputstream to an inputstream?
s
satyan
07/02/2021, 11:26 AM
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:
input.copyTo(output)
t
tipsy
07/04/2021, 4:26 PM
the other way around 🙂
i have an outputstream that i need to make available to a method that expects an inputstream