title: Java servlet read a file and send it as response
body: <p>I'm trying to write a servlet which will read (download) file from a remote location and simply send it as response, acting more-or-less like a proxy to hide the actual file from getting downloaded. I'm from a PHP background where I can do it as simply as calling <a href="http://us3.php.net/file_get_contents" rel="noreferrer">file_get_contents</a>. </p>
  
  <p>Any handy way to achieve this goal using servlet/jsp?</p>
  
  <p>Thanks</p>