Open
Description
Type: Feature
I notice that, for a simple upload of an InputStream
, an entire S3Resource
has to be created along with the S3OutputStream
. This results in putting all the data or in memory or to disk
It would be nice to have, in S3Operations
and S3Template
, an upload method that has the following signature:
S3Resource upload(String bucketName, String key, InputStream inputStream, long contentLength)
This should call S3Client.putObject
with RequestBody.fromInputStream
, that uses the input stream and the content length so not to read the file twice, or dump in memory or on file.