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

bitkid

07/29/2020, 12:03 PM
i need to write a simple endpoint which receives a file via http and passes it on to the aws sdk transfermanager for uploading to S3. can i do it in a way that i only handle streams, so that the file is never fully read (to memory/disk). files are very, VERY big. how could i do that with ktor?
method i will probably use has this signature *upload*(String bucketName, String key, InputStream input, ObjectMetadata objectMetadata)
8 Views