Is there any way to write an object to amazon s3 with OutputStream in SDK for java?

Viewed 3123

I would like to write a serializable object into a bucket of amazon s3. However I cannot find a class called S3ObjectOutputStream even though I can use S3ObjectInputStream.

Of course I can write the serializable object to a local directory and then upload the file onto s3, but I am just wondering is there any way to write to amazon s3 with OutputStream directly?

2 Answers
Related