Hey everyone, I am trying to upload a video using ...
# multiplatform
a
Hey everyone, I am trying to upload a video using Ktor. For small files I can convert
Data
to
ByteArray
, but what to do about videos > 30MBs? I'm using an expect function to get me the file for a given url. For android, I convert
File
to
ByteReadChannel
and set as the body
setBody(byteReadChannel)
For iOS, I'm not able to convert to a
ByteReadChannel
.