我有一个水桶"测试"在亚马逊AWS S3和那个桶中,他们是另一个子文件夹,即" sub_test"现在我想在" sub_test"中保存图像夹。他们有什么办法吗? 任何想法都将受到高度赞赏。提前致谢
答案 0 :(得分:0)
//Creating object push request
var putObj:PutObjectRequest = new PutObjectRequest(bucketName, "fooDir/"+imageName+".png", imageStream, objMetaData)
//Providing object with public read-only permission
//putObj.setCannedAcl(CannedAccessControlList.PublicRead) , depends upon your need
//Pushing the object
amazonS3Client.putObject(putObj)