如何查看存储在Google云存储桶中的图像?

编程入门 行业动态 更新时间:2024-10-09 06:25:14
本文介绍了如何查看存储在Google云存储桶中的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个存储有图像的存储桶,当我使用图像的公共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云存储桶中的图像?

本文发布于:2023-11-24 14:04:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625517.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图像   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!