我可以将图像作为文件而不是 data:url 存储在 Firebase 上吗?

Can I store image on Firebase as file, instead of a data:url?

我想在 firebase 上存储图像并想在某个地方使用它。我经历了 this SO post and tried this demo.

它将图像存储为 data:url 格式。但我想将图像上传并存储为物理文件,以便我可以进一步使用它,像这样 url http://example.com/some_image.png

我可以用 Firebase 实现吗?

没有。 Firebase API 目前不支持在其数据库之外存储文件。

更新:在 Google I/O 2016 年,Firebase 添加了 Firebase Storage 其产品,这是一项专门用于存储文件的服务。