title: How can I retrieve images from Firebase Storage rather than Firestore, to create an image slider in Android studio?
body: <p>My code to display images in an image slider(slideshow) is working when I retrieve images from Firestore, HOWEVER I am trying to retrieve it from Firebase storage instead and it's giving me a hard time.</p>
  
  <p>This is my working code for retrieving from Firestore.</p>
  
  <pre><code>public void update(View view) {
          DocumentReference user=db.collection("FILES").document("images");
          user.get().addOnCompleteListener(new OnCompleteListener&lt;DocumentSnapshot&gt;() {
              @Override
              public void onComplete(@NonNull Task&lt;DocumentSnapshot&gt; task) {
                  if (task.isSuccessful())
                  {
                      DocumentSnapshot doc=task.getResult();
                      //For Image1
                      StringBuilder img1=new StringBuilder("");
                      img1.append(doc.get("image1"));
                      image1.setText(img1.toString());
                      String image1url=image1.getText().toString();
                      Picasso.get().load(image1url).into(imageView1);
  
                      //For Image2
                      StringBuilder img2=new StringBuilder("");
                      img2.append(doc.get("image2"));
                      image2.setText(img2.toString());
                      Stringimage2url=image2.getText().toString();
                         Picasso.get().load(image2url).into(imageView2);
  }
              }
          }).addOnFailureListener(new OnFailureListener() {
              @Override
              public void onFailure(@NonNull Exception e) {
                  Toast.makeText(ImageSlider.this, "Falied", Toast.LENGTH_SHORT).show();
              }
          });
      }
  </code></pre>
  
  <p>I tried this to get it from firebase storage but 'get()' is showing up as an error in </p>
  
  <pre><code>get().addOnCompleteListener(new OnCompleteListener
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>get() is not working when I try the following: </p>
  
  <pre><code>public void update(View view) {
          DatabaseReference mDatabaseRef = FirebaseDatabase.getInstance().getReference().child("uploads").child("uploads");
          mDatabaseRef.get().addOnCompleteListener(new OnCompleteListener&lt;DocumentSnapshot&gt;() {
              @Override
              public void onComplete(@NonNull Task&lt;DocumentSnapshot&gt; task) {
  </code></pre>