作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
<分区>
我在将图像上传到 Android 中的亚马逊 s3
服务器时遇到问题。
我创建了一个存储桶,每次都需要将图像发布到该存储桶。当我第一次尝试将图像发布到该存储桶时,它可以从下次发布时显示如下消息:
The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
我可以在单个存储桶中上传图片吗?我试过了
s3Client.createBucket(Constants.getPictureBucket());
// Content type is determined by file extension.
PutObjectRequest por = new PutObjectRequest(Constants.getPictureBucket(), Constants.PICTURE_NAME, new java.io.File(filePath));
s3Client.putObject(por);
谁能帮帮我?
我是一名优秀的程序员,十分优秀!