title: Jboss image upload and http access to show image
body: <p>I am uploading images to jboss server by getting the absolute path using the following code</p>
  
  <pre><code>getServletContext().getRealPath("");
  </code></pre>
  
  <p>The uploaded image is moved to the absolute path and I can access the image using <a href="http://test.com:8080/image.jpg" rel="nofollow">http://test.com:8080/image.jpg</a></p>
  
  <p>My problem is the image is being uploaded to the tmp directory of jboss server, so i am losing the uploaded images in the next deployment.
  I tried uploading the image to various paths to make it work
  \jboss-5.0.1.GA\server\default\deploy
  and here \jboss-5.0.1.GA\server\default\work\jboss.web\localhost as well
  But fails, I cannot access the image using <a href="http://test.com:8080/image.jpg" rel="nofollow">http://test.com:8080/image.jpg</a></p>
  
  <p>Kindly help me out in this...</p>