how to download image to local computer when click on a image in java?
<p>How can i download image to local computer when click on a image in java?</p>

<p>Image store in a folder name images in web-inf, and this image given in a link as src.
When i click on this link i can download this images to local computer.
any on can help me??</p>

<pre><code>&lt;a href="&lt;%=request.getContextPath()%&gt;/pages/imageDownload.jsp"&gt; Image download &lt;/a&gt;
this is the link to next page.

&lt;img src="images/abt.jpg" width="300" height="100" alt="" /&gt;
</code></pre>

<p>This is the image link..
I want to download image when click on this link.</p>

<p>Thanks in advance..</p>
