https://kotlinlang.org logo
#ktor
Title
# ktor
m

Mikhail

06/15/2022, 2:07 PM
is there any convenient way to download a huge file with Ktor using OutputStream? The file is considered to be larger than 2GB. I previously asked almost the same question
Using
ByteReadChannel
as described there seems to be the best way
a

Aleksei Tirman [JB]

06/15/2022, 5:25 PM
Also, you can observe a download progress with the
onDownload
extension function https://ktor.io/docs/response.html#raw.
m

Mikhail

06/15/2022, 5:25 PM
Considered Thanks
5 Views