所以我希望能够从我的S3存储抢我的图片和(使用滑行或毕加索),其图像加载到ImageView的。 (我不想将该图像下载到我的手机中)。如何将图片从aws s3下载到imageview?
目前,我有这样的:
downloadButton = (Button) findViewById(R.id.cognito_s3DownloadButton);
downloadButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v)
{
File file = new File(Environment.getExternalStorageDirectory().toString() + "/" + "fromAWS");
observer = transferUtility.download("zivit-card-images","image1", file);
Glide.with(getBaseContext()).load("image in byes? or url?").centerCrop().into(myImageView);
}
});
再次,我如何从S3检索图像并将其插入到一个ImageView的?
您传递文件参考'transferUtility.download()',那该文件到传输工具将在S3对象下载到。 – Karthik