title: Android: WebView loadDataWithBaseURL does not display captcha image
body: <p>I am trying to display a captcha jpeg image (which is generated dynamically by a Java servlet) in my application's WebView, however, it will sometimes display a blue question mark instead of the captcha image. Below is what I have in my <code>shouldOverrideUrlLoading(WebView view, String url)</code> method of <code>MyWebViewClient</code> class that extends <code>WebViewClient</code></p>
  
  <p>I have internet access enabled in my manifest and the problem occurs for about 80% of the time. i.e. Sometimes the image does show up correctly but very rare though.</p>
  
  <p>There was another similar question here <a href="https://stackoverflow.com/questions/3817724/android-webview-question">Image with dynamic src loads in Android browser, but not in Webview</a>, but does not seem to have a definitive answer.</p>
  
  <p>Thanks in advance</p>
  
  <pre><code>try
              {
                  CookieSyncManager.getInstance().sync();
                  Log.v("Hello","CookieStore: " + httpClient.getCookieStore().toString());
                  HttpResponse response = httpClient.execute(httppost);
                  data = new BasicResponseHandler().handleResponse(response);
                  view.loadDataWithBaseURL(URL.toString(), data, "text/html", "UTF-8" , null);
                  //Log.v("Hello","Data: " + data.toString());
              }
              catch (ClientProtocolException e)
              {  
                  Log.v("Hello","ClientProtocolException:Overriding");
                  Log.v("Hello",e.toString());
                  e.printStackTrace();    
              } 
              catch (IOException e) 
              {   
                  Log.v("Hello","IOException:Overriding");
                  Log.v("Hello",e.toString());
                  e.printStackTrace();  
              }
  </code></pre>