嗨,有没有办法使用iOS的REST调用从Firebase Storage下载镜像,或者我必须使用iOS SDK?
发布于 2016-09-11 23:09:04
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
}
}
https://stackoverflow.com/questions/39436596
复制相似问题