title: How to display image with WebView loaddata?
body: <p>I've got the following</p>
  
  <pre><code>String urlStr = "http://example.com/my.jpg"
  String mimeType = "image/jpeg";
  String encoding = null;
  String pageData = ""; // This is data read in from an HttpURLConnection
  webview.loadDataWithBaseURL(urlStr, pageData, mimeType, encoding, urlStr);
  </code></pre>
  
  <p>but when I run this, all I see is a blue question mark instead of my image. What is the proper way to handle displaying an image in a WebView with loadData?</p>
  
  <p><strong>Edit:</strong>
  Is there a way to do this without passing pageData as <code>&lt;img src="http://example.com/my.jpg/"&gt;</code> ? It seems silly that loadData takes a mime-type if it can only handle "text/html". Especially since the javadoc lists "image/jpeg" as an example mime-type that you might pass in.</p>