add s3 putObject

and fixed to use buffer