Fetching an image from url takes a lot of time thogh it loads quicky inside a webView
<p>I have an image located at an HTTP url , when i try to load this in a webview inside an activity it doesn't take much time to load , but when i am trying to set it to an ImageView by creating a bitmap as below </p>

<pre><code>fis = new FileInputStream(f);
fis = new java.net.URL(filePath).openStream();
bfis = new BufferedInputStream(fis);
b = BitmapFactory.decodeStream(fetch(filePath), null, o2);
fis.close();
</code></pre>

<p>It takes a lot of time , How can I efficiently set the image to ImageView ?</p>

<p>Also can u explain why it loads quickly in webView while it takes a lot of time in while fetching it from inputstream</p>
