What is the format it gets converted?
<pre><code>&lt;?php

$str = file_get_contents("php://input");
file_put_contents("/tmp/upload.jpg", pack("H*", $str));

?&gt;
</code></pre>

<p>I am receiving the file as string, now what does the <code>pack</code> method and <code>file_put_contents</code> do?</p>
