Reputation: 105
I'm wondering what is proper way to store users avatar/photo/Image from FirebaseUser.getPhotoUrl(). My first idea was simple, store URL to this images as normal String, and It would be great if not the fact that facebook URLs expires. So my second idea was to fetch these images and store as Base64 String, but then I got to my third idea which is Firebase Storage, but I'm wondering if it is too slow to store so small and dynamic content as users avatars.
Upvotes: 2
Views: 3245
Reputation: 15963
Don't store it in Firebase Storage or the Realtime Database, just download it directly from the URL and cache it locally. No reason to store the same thing twice :)
Upvotes: 1