title: Cannot resolve Base64.encodeToString
body: <p>I am trying to save images on firebase using 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.encodeToString(byteArray,Base64.DEFAULT);
  </code></pre>
  
  <p>But i am facing an error :</p>
  
  <pre><code>cannot resolve method 'encodeToString(byte[],?)' 
  cannot resolve symbol 'DEFAULT'
  </code></pre>
  
  <p>How to fix this error.   </p>