title: I would like to pass an Image tag data to servlet. How?
body: <p>I have a jsp page where am displaying image (which is generated in servlet and passed with name in jsp) and accepting text. Now i would like to pass that image tag value and textarea value to another jsp page. I am able to get textarea value but how to retrieve image to servlet.</p>
  
  <p><strong>JSP code</strong>:</p>
  
  <pre><code>&lt;form id="form1" action="CallServlet"&gt;
  &lt;img src="PieChartDemo" width="600" height="400" border="0" name="chartsample"/&gt;&lt;br&gt;
  &lt;textarea rows="4" cols="150" id=t1 name=t1&gt;&lt;/textarea&gt;
  &lt;input type="Submit" value="Send"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Servlet Code</strong>:</p>
  
  <pre><code>PrintWriter out=response.getWriter();
  PieChartDemo pcd=new PieChartDemo();
  String textvalues=request.getParameter("t1");
  System.out.println("Text values : "+textvalues);
  out.println(textvalues);
  </code></pre>
  
  <p>Now i would like to display or store it into a variable that image. How to go about? Suggest.</p>
  
  <p>Thanks in Advance.</p>