我有一个存储有图像的存储桶,当我使用图像的公共URL检索图像时,它将在浏览器中下载而不是在浏览器中显示图像,如何查看图像而不是下载它.我将以下URL用于上传的图像.
www.googleapis/download/storage/v1/b/image-downloader-bucket/o/a06266f6-6082-468e-92ca-f918a48533a8?generation=1455661996337000&alt=媒体
有人可以让我知道如何创建用于查看图像的正确URL吗?
解决方案如果该对象是公开可读的,则可以直接在" storage.googleapis/BUCKET_NAME/OBJECT_NAME ",在您的情况下为 storage.googleapis/image-downloader-bucket/a06266f6-6082-468e-92ca-f918a48533a8 .. >
I have a bucket that has images stored in it , when I retrieve the image using the public URL of the image it downloads it in the browser instead of showing the image in the browser , how can I view the image instead of downloading it. I use the following URL for the uploaded image.
www.googleapis/download/storage/v1/b/image-downloader-bucket/o/a06266f6-6082-468e-92ca-f918a48533a8?generation=1455661996337000&alt=media
Can someone let me know how to create the right URL for viewing the image ?
解决方案If the object is publicly readable, you can view it directly at "storage.googleapis/BUCKET_NAME/OBJECT_NAME", which in your case would be storage.googleapis/image-downloader-bucket/a06266f6-6082-468e-92ca-f918a48533a8.
更多推荐
如何查看存储在Google云存储桶中的图像?
发布评论