Handling Image Store to Firebase with Swift

后端 未结 1 1453
旧巷少年郎
旧巷少年郎 2021-01-25 14:31

This is how I upload to Firebase. But it takes a while to fetch it back. Also while saving it too, that\'s why I tried asynchronising the process.

if imagePathTo         


        
相关标签:
1条回答
  • 2021-01-25 15:08

    What is the proper way of handling image storage to Firebase?

    As covered in many questions before: the Firebase JSON Database is not a good fit for storing images.

    The best way to handle user-generated images is to store them on a dedicated files/image storage service and then store the URL of that service in your Firebase Database.

    Update: At I/O 2016 Firebase introduced Firebase Storage, which is a perfect fit for storing images.

    0 讨论(0)
提交回复
热议问题