gpt4 book ai didi

ios - 火力地堡 REST API

转载 作者:行者123 更新时间:2023-11-28 16:12:06 24 4
gpt4 key购买 nike

您好,有什么方法可以使用来自 iOS 的 REST 调用从 Firebase 存储下载图像,或者我必须使用 iOS SDK?

最佳答案

Firebase Storage 构建于 Google Cloud Storage 之上,因此您可以使用该 REST API 访问文件。在应用程序中,下载文件的常用方法是使用 download URL that you can get for a file并使用图像下载库。链接文档中的示例:

// Create a reference to the file you want to download
let starsRef = storageRef.child("images/stars.jpg")
// Fetch the download URL
starsRef.downloadURLWithCompletion { (URL, error) -> Void in
if (error != nil) {
// Handle any errors
} else {
// TODO: download from URL with a REST GET call
}
}

关于ios - 火力地堡 REST API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39436596/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com