title: I am not able to display a base 64 encoded image?
body: <p>1) Below is how, I am encoding the image--</p>
  
  <pre><code>StringBuilder prefixToImageEncodedString=new StringBuilder("data:image/*;base64,"); 
  
   InputStream in =new BufferedInputStream(new FileInputStream("D:/resources/Australia.jpg"));
  byte[] bytes=ImageIO.read(in).toString().getBytes();
  String encodedfile = new String(Base64.encode(bytes), "UTF-8");
  String imageBaseURL=prefixToImageEncodedString.append(encodedfile).toString();
  </code></pre>
  
  <p>I am getting following output:-</p>
  
  <pre><code>   data:image/*;base64,QnVmZmVyZWRJbWFnZUAxMzA5OWNjOiB0eXBlID0gNSBDb2xvck1vZGVsOiAjcGl4ZWxCaXRzID0gMjQgbnVtQ29tcG9uZW50cyA9IDMgY29sb3Igc3BhY2UgPSBqYXZhLmF3dC5jb2xvci5JQ0NfQ29sb3JTcGFjZUAxYzEyMWI2IHRyYW5zcGFyZW5jeSA9IDEgaGFzIGFscGhhID0gZmFsc2UgaXNBbHBoYVByZSA9IGZhbHNlIEJ5dGVJbnRlcmxlYXZlZFJhc3Rlcjogd2lkdGggPSAxODggaGVpZ2h0ID0gMTE5ICNudW1EYXRhRWxlbWVudHMgMyBkYXRhT2ZmWzBdID0gMg==
  </code></pre>
  
  <p>At front end (AngularJS), when I am displaying the image by setting the string, it is not displaying the image.</p>
  
  <pre><code>&lt;img src="{{countryImageNew}}" class="img1"&gt;
  </code></pre>
  
  <p>Guidance is required.</p>