firebase-realtime-database - firebase 存储 url 是否随时间或位置而变化

标签 firebase-realtime-database firebase-storage

我想知道是否可以将我从存储中获取的 url 保存到我的数据库中,并在每次我需要图像时检索链接?现在,每次我需要获取图像时我都会调用以下函数并且速度很慢。我只是担心链接可能会根据用户所在的位置和时间而改变?

           storage.ref(thisEvent.eventImgInReference).getDownloadURL().then(function (url) {                         
                            //here I just add the image url
                            thisEvent.eventImgLink=url;
                            //
                            $scope.$apply();
                        }).catch(function (error) {
           });

最佳答案

只有当您在 Firebase 控制台中撤销下载 token 时,下载 URL 才会更改,因此将它们存储在数据库中完全没问题。

关于firebase-realtime-database - firebase 存储 url 是否随时间或位置而变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38404273/

相关文章:

firebase - 使用rest api将图像上传到firebase存储

ios - 在 Firebase 上保存与用户关联的个人资料图片

java - 我在 Recyclerview 中显示来自 firebase 的图像时遇到问题

firebase - Firebase中基于多个where子句的查询

Android Firebase - 计算列表中某个值出现的总数

firebase-realtime-database - 如何编写规则以防止从数据库中删除任何节点

ios - 使用 Firebase 和 Swift 上传图像 (iOS)

firebase - Flutter Firebase 存储视频旋转

node.js - where is or What is the serviceAccountKey.json 是firebase实时数据库的 Node js示例

ios - 从 View Controller 中的单元格访问 Firebase 数据