Uploading image from Mobile device to server via php page
<p>I have a simple PHP form that uploads an image and then resizes it. When I run it on my Android using an image taken by the phone's camera, the file uploads but does not resize. BUT, if I use an image taken from a digital camera and uploaded via bluetooth to my phone, then it works fine. </p>

<p>I thought maybe the image is base64 encoded, so I tried:</p>

<pre><code>$img = base64_decode($uploadfile); 
file_put_contents($name,$img);
</code></pre>

<p>and</p>

<pre><code>$img = imagecreatefromstring(base64_decode($uploadfile)); 
file_put_contents($name,$img);
</code></pre>

<p>But, neither worked.</p>

<p>I just downloaded one of the image files I uploaded from my camera to the server and tried uploading through the script. I get a "SyntaxError: Unexpected EOF" error. Thought it might help to mention this.</p>

<p>Anyone know what I'm doing wrong?</p>

<p>Thanks!</p>
