0

当我在浏览器中打开这样一个指向 Google Street View Static API 的链接时

https://maps.googleapis.com/maps/api/streetview?size=640x640&location=fifth%20avenue&key=...

它对我来说应该是有效的,我看到了图片。

我的问题是如何将它保存到我的 Firebase 存储中?

通常当我的用户上传他们自己的图片时,我会写如下内容:

storage.child('images/' + filename).put(file, {
  contentType: 'image/jpeg',
}); 

如何直接从 Street View Static API 上传图片?

4

0 回答 0