I am using AWS SDK for java. Is there any difference in performance when passing InputStream
instead of File
in uploading to AWS S3 using TransferManager
multipart upload? Should one be preferred over the other or is it just a matter of choice?
Update: In my tests, I found that using an input stream was always slower than using a file. [File Size is 512MB]
P.S. I am using Spring so what I get is a MultipartFile
the contents of which I store in the temp file just for uploading to S3.