How to download data in firebase through storage?

1

I used Firebase documentation and I still did not understand how to download a file that is in Storage by my app.

    
asked by anonymous 09.08.2018 / 22:14

1 answer

0

Use a library that comes with Firebse storage. In your build.grad, add the following line in dependencies to be able to use this firebase feature:

implementation 'com.firebaseui:firebase-ui-storage:0.6.0'

Then create a reference for the file you want to download and download using the Glide library. It will be downloaded and cached.

The example below downloads a photo and loads it into an ImageView:

Glide.with(MainActivity.this)
        .using(new FirebaseImageLoader())
        .load(imagemRef)
        .into(imageView)
    
09.08.2018 / 23:07