title: Retrieve image from firebase in android app
body: <p>How can i retrieve images from <strong>firebase</strong> . i am converting my images to <strong>base64</strong> string first then saving it to <strong>firebase</strong> string code below.</p>
  
  <pre><code>Bitmap bm = BitmapFactory.decodeFile(imgDecodableString);
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  bm.compress(Bitmap.CompressFormat.JPEG,100,baos);
  byte[] byteArray =  baos.toByteArray();
  String encodedImage = Base64.encodeBytes(byteArray,Base64.ENCODE);
  
  ref.push().setValue(encodedImage);
  </code></pre>
  
  <p>Now how can i show this image in my activity.</p>