Hi everyone Could you please give me an example h...
# ktor
h
Hi everyone Could you please give me an example how to download a file using ktor client.
d
client.get("https://.......").body<ByteArray>()
b
Then write the ByteArray to File
n
there is also
bodyAsChannel
variant which will get you a
ByteReadChannel
b
Yeah good tip, i usually just feed the read channel into file write channel