title: how to implement PHP file_get_contents() function in JSP(java)?
body: <p>In PHP we can use <code>file_get_contents()</code> like this:</p>
  
  <pre><code>&lt;?php
  
    $data = file_get_contents('php://input');
    echo file_put_contents("image.jpg", $data);
  
  ?&gt;
  </code></pre>
  
  <p>How can I implement this in Java (JSP)?</p>