How to create a java OutputStream for an S3 object and write value to it?
问题 Existing ways of adding content to an S3 file using methods in AmazonS3 class are by putObject with an InputStream Creating a local file with content and uploading it to S3. Is there a way an OutputStream can be created for an existing S3 object to which values from a list can be written into? I see there are no APIs for doing so. 回答1: It's possible to create an S3OutputStream which wraps the AmazonS3 client. See this gist for the implementation: https://gist.github.com/blagerweij