Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android对ImageOperations和AWS S3下载的奇怪行为_Android_Amazon S3_Amazon Web Services - Fatal编程技术网

Android对ImageOperations和AWS S3下载的奇怪行为

Android对ImageOperations和AWS S3下载的奇怪行为,android,amazon-s3,amazon-web-services,Android,Amazon S3,Amazon Web Services,要用假名来保护隐私 我的代码是: bitmap = ImageOperations(ImageViewer.this, url, "image.jpg"); 其中url类似于: 我正在使用AWS S3查询字符串请求身份验证替代方案下载该文件 我加载了一个活动,该活动下载图像并在ImageView中显示位图 For the first time, it loads fine and there is a bitmap. For the second time, it loads and I g

要用假名来保护隐私

我的代码是:

bitmap = ImageOperations(ImageViewer.this, url, "image.jpg");
其中url类似于:

我正在使用AWS S3查询字符串请求身份验证替代方案下载该文件

我加载了一个活动,该活动下载图像并在ImageView中显示位图

For the first time, it loads fine and there is a bitmap.
For the second time, it loads and I get null.
For the third time, it loads fine and there is a bitmap.
For the fourth time, it loads and I get null.
这种交替行为是非常一致的。以前有人经历过这种情况,知道发生了什么吗

我用一个无限制策略的bucket进行了尝试,在这个bucket中,您可以直接下载而无需身份验证,而且它一直都有效