I have android as front-end, (php,mysql) as back-end and AWS as the infrastructure host. I am developing APIs using laravel to be consumed by the android app but having problem figuring out how to display images hosted on S3 in android.
I am able to fetch (private)resource URL from S3 using the AWS PHP SDK's getObjectURL method but I can't pass the URL alone as an image src in Android as the URL does not contain credentials and authentication is only happening from server side.
Should I first download images from S3 to my server, cache it and serve to Android or is there a way I can have android directly access the images from the URL i.e. can i append credentials with URL?
当使用S3进行身份验证来自服务器端时,如何从android(客户端)调用AWS S3映像URL(php + aws sdk php v3)
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- duandu8202 2016-10-12 02:26关注
You can directly access images from s3 bucket using Andriod SDK see this : https://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/s3transferutility.html
解决 无用评论 打赏 举报
悬赏问题
- ¥15 微信会员卡接入微信支付商户号收款
- ¥15 如何获取烟草零售终端数据
- ¥15 数学建模招标中位数问题
- ¥15 phython路径名过长报错 不知道什么问题
- ¥15 深度学习中模型转换该怎么实现
- ¥15 HLs设计手写数字识别程序编译通不过
- ¥15 Stata外部命令安装问题求帮助!
- ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
- ¥15 TYPCE母转母,插入认方向
- ¥15 如何用python向钉钉机器人发送可以放大的图片?