public PutObjectResponse putObject ( String bucketName , String key , byte [ ] value , ObjectMetadata metadata ) { if ( metadata . getContentLength ( ) == - 1 ) { metadata . setContentLength ( value . length ) ; } return this . putObject ( new PutObjectRequest ( bucketName , key , RestartableInputStream . wrap ( value ) , metadata ) ) ; }
Uploads the specified bytes and object metadata to Bos under the specified bucket and key name .