title: Retrieve Image from Firebase to show in my Image view
body: <p>I'm looking forward to display the images stored in Firebase Storage with reference from Firebase Database.</p>
  <p>Below is my Firebase Data Structure</p>
  <p><a href="https://i.stack.imgur.com/SqVYv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SqVYv.jpg" alt="enter image description here" /></a></p>
  <p>and my Storage Structure is</p>
  <p><a href="https://i.stack.imgur.com/w45Rl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w45Rl.jpg" alt="enter image description here" /></a></p>
  <p>Below is my code of recycle adapter that I'm using to retrieve images from Firebase</p>
  <pre><code>public class SubjectBooksAdapter extends RecyclerView.Adapter&lt;SubjectBooksAdapter.MyViewHolder&gt; {
      ArrayList&lt;Books&gt; bookslist;
      CardView cv;
      FirebaseAuth fauth;
      FirebaseDatabase database;
      DatabaseReference dbreference;
      Books b;
  
      public SubjectBooksAdapter(ArrayList&lt;Books&gt; bookslist){
          this.bookslist = bookslist;
      }
  
      @Override
      public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout,parent,false);
          return new MyViewHolder(v);
      }
  
      public class MyViewHolder extends RecyclerView.ViewHolder {
  
          TextView bookName,bookAuthor,bookDesc,bookPrice,bookCall;
          ImageView iv;
  
          MyViewHolder(final View itemView) {
              super(itemView);
              cv = (CardView) itemView.findViewById(R.id.my_card_view);
  
              iv = (ImageView) itemView.findViewById(R.id.imageView);
  
              database = FirebaseDatabase.getInstance();
              dbreference = database.getReference(&quot;books&quot;);
              bookName = (TextView) itemView.findViewById(R.id.bookName);
              bookAuthor = (TextView) itemView.findViewById(R.id.bookAuthor);
              bookDesc = (TextView) itemView.findViewById(R.id.bookDesc);
              bookPrice = (TextView) itemView.findViewById(R.id.bookPrice);
              bookCall = (TextView) itemView.findViewById(R.id.bookCall);
              fauth = FirebaseAuth.getInstance();
          }
      }
  
      @Override
      public void onBindViewHolder(final MyViewHolder holder, final int position) {
  
          database = FirebaseDatabase.getInstance();
          dbreference = database.getReference(&quot;books&quot;);
  
          b = bookslist.get(position);
          holder.bookName.setText(b.getBname());
          holder.bookAuthor.setText(b.getBauthor());
          holder.bookDesc.setText(b.getBdesc());
          holder.bookPrice.setText(&quot;Rs. &quot;+b.getPrice());
          holder.bookCall.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  //Log.e(&quot;Current user is &quot;, fauth.getCurrentUser().getEmail());
                  b = bookslist.get(position);
                  String[] arr = {b.getSelleremail(),b.getSellername(),b.getBname(),b.getBauthor()};
                  //Log.e(&quot;Seller is &quot;,b.getSellername());
                  Intent in = new Intent(v.getContext(),Chat.class);
                  in.putExtra(&quot;seller&quot;,arr);
                  v.getContext().startActivity(in);
              }
          });
          Glide.with(cv.getContext()).load(Uri.parse(b.getPics())).placeholder(R.drawable.bshelf).error(R.drawable.bshelf).into(holder.iv);
  
      }
  
      @Override
      public int getItemCount() {
          return bookslist.size();
      }
  }
  </code></pre>
  <p>But it shows every other details but doesn't show the image...Here is the screenshot</p>
  <p><a href="https://i.stack.imgur.com/y0B80.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y0B80.png" alt="enter image description here" /></a></p>
  <p>It thus shows the default bshelf.png from drawable folder.</p>