title: convert string into bitmap got null
body: <p><strong>Update</strong></p>
  
  <p>What i want to do is render a string as a Bitmap. For example if the string of the string instance are "hello world", then resulting Bitmap will be an image of the same letters and ready to use with an ImageView.</p>
  
  <p>I've tried the code below, but "bitmap" is still null when the code completes.</p>
  
  <pre><code>    public Bitmap StringToBitMap(String getContent) {
      try {
          byte[] encodeByte = Base64.decode(getContent, Base64.DEFAULT);
          Bitmap bitmap = BitmapFactory.decodeByteArray(encodeByte, 0,encodeByte.length);
          return bitmap;
      } catch (Exception e) {
          e.getMessage();
          return null;
  
      }
  
  }
  </code></pre>