簡體   English   中英

我可以將圖像從 img 標簽上傳到 firebase 存儲嗎

[英]Can I upload image to firebase storage from img tag

我可以將圖像從 URL 上傳到 Firebase 存儲嗎? 實際上,場景是有一個 img 標簽,我想以編程方式將該圖像上傳到 firebase 存儲。 如果無法做到這一點,firebase 存儲中是否有任何選項可以從外部鏈接/網址上傳?

Firebase 不提供任何工具來以編程方式將 URL 的內容上傳到雲存儲。 What you will have to do is write some code to download the contents of the URL into memory, then use the put() method provided by the Firebase SDK to upload that data to Cloud Storage.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM