Reputation: 11
I want to create/write a text file into s3 bucket using java.i'm using file output stream writer to write a content.
Upvotes: 0
Views: 5297
Reputation: 269540
Take a look at the Amazon S3 client putObject()
function that includes an InputStream
:
public PutObjectResult putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata)
throws SdkClientException,
AmazonServiceException
Upvotes: 2