hi! is there a way to convert Flow<ByteArray&gt...
# coroutines
s
hi! is there a way to convert Flow<ByteArray> to single InputStream, but without storing all emitted bytes in memory?
l
I guess with
runBlocking
you can.
s
thx finally i came to this solution for InputStream to Flow<ByteArray> conversion and vice versa https://pl.kotl.in/wj0sKaS1Z
u
Dont you already have it in memory if its Flow<ByteArray> ?
s
no, bytes will be emitted to flow by the chunks from underlying inputstream