title: How to get file contents from a MultipartHttpServletRequest object?
body: <p>I would like to upload a file from the web page using this strategy. i.e. <a href="http://www.ajaxf1.com/tutorial/ajax-file-upload-tutorial.html" rel="nofollow">Ajax file upload tutorial</a> . It is going all fine, but the issue is on the server side, where I want to open this file and read its contents.
  I am using the following signature for the method which is called on the submit of the form.
  i.e. </p>
  
  <p><code>public @ResponseBody String getFile(MultipartHttpServletRequest request)</code></p>
  
  <p>Can any body please let me know that how can I extract the contents of the file?</p>