# multiplatform


11/13/2023, 3:16 PM
Has anyone here uploaded a file to AWS by any chance? Or better yet ... using ktor ? I am unable to figure out how to generate a ByteReadChannel to pass to ktor inside native code. Anyone got a possible snippet or something ?! I've found a way to use the ByteArray, but that means loading the data into memory all at once, and I don't want the risk of an OOM exception. So ByteReadChannel seems to be the best bet but I have no idea how to get one from an NSData.