How to avoid downloading image from firebase if i have already downloaded previously?

后端 未结 2 465
粉色の甜心
粉色の甜心 2021-01-26 00:58

I am trying to store image from firebase database and named it FirebaseuniqUserID.jpeg.(like buwkgefuikbuifbkc8gfybfy.jpeg). And user can change image anytime. For getting image

相关标签:
2条回答
  • 2021-01-26 01:47

    You can use two different options, first is Glide and 2nd is that, you can save image downloading status in your local database file or SharePreferences. But image cache is the best solution.

    0 讨论(0)
  • 2021-01-26 02:01

    I want avoid downloading if current user has latest updated image of user in Firebase

    To solve this, I definitely recommend you to use an image loading and caching library. For Android we have Glide:

    Glide is a fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.

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