title: Save image locally and display in webview
body: <p>I have trouble with this simple piece of code.
  I download an image from the web and save it locally with :</p>
  
  <pre><code>               File mFile = new File(context.getFilesDir(), "a.png");
                 if(!mFile.exists()) {         mFile.createNewFile();                }
                 FileOutputStream fos = new FileOutputStream(mFile);
                 fos.write(baf.toByteArray());
                 fos.flush();
                 fos.close();
  </code></pre>
  
  <p>I try to display this image on the ImageView and it's working.
  Now i try to <strong>display the save image on a WebView.</strong></p>
  
  <pre><code>  String data = "&lt;body&gt;" +"&lt;img src=\"a.png\"/&gt;&lt;/body&gt;";
    webview.loadDataWithBaseURL(getActivity().getFilesDir().toString(),data , "text/html", "utf-8",null);
  </code></pre>
  
  <p>It's not working, the webview shows nothing. I try the webview with a png i put myself in /assets and it's working.</p>
  
  <p>I think my syntax to point to the file in the String data is wrong but i'm not sure.</p>
  
  <p>Any help appreciated.</p>
  
  <p>Thanks.</p>
  
  <p>Alex.</p>