how do i put $_FILES content into binary var in php?
<p>i have a unity c# program which is uploading a binary file (with some data).
(which is kind of irrelvant but maybe not)</p>

<pre><code>var form = new WWWForm();
form.AddField("docid", "A");               
byte[] textarr = Encoding.ASCII.GetBytes("just a sample text to be compressed and sent to server");
form.AddBinaryData("file", textarr,"file.tmp");                
string req = "my url";        
WWW www = new WWW(req,form);
</code></pre>

<p>i want to take the file content(as binari) so that i will be able to send into the database as binari in the php side. </p>

<p>i am trying to do something like this:</p>

<pre><code>$binaridata = ~$_FILES["file"]["name"] (what do i need to do here? tried 
</code></pre>

<p>file_get_content etc, but it always yield some errors)</p>

<p>Thanks for your help!</p>
