title: Android image upload issue
body: <p>I am developing an Android application for airport customer complain lodging and tracking.The user will enter their passenger ID,complain text and an image(optional)...i am using the Asynchronous Http Client library to upload the image to the server...</p>
  
  <p>my client end code to upload image is-</p>
  
  <pre><code>File myfile=new File(photoFile.getAbsolutePath());
  params.put("image",myfile);
  </code></pre>
  
  <p>i am saving the image captured by the camera in photoFile.
  Then i am making a POST request and sending the Complain ID(generated on client-side),Complain text and image to the server.</p>
  
  <p>On server side i am using PHP,the code goes like this-</p>
  
  <pre><code>$complain_id=$_POST['complain_id'];
  $ticket_id=substr($complain_id,-6);
  $complain=$_POST['complain_text'];
  $imageName = $_FILES["image"]["name"];
  move_uploaded_file($_FILES["image"]["tmp_name"] , "/images/".$imageName);
  $imageData = file_get_contents( "/images/".$imageName);
  $imageData = addslashes($imageData);
  $imageType = $_FILES["image"]["type"];
  
  
  $sql='INSERT INTO `complain_table` (`complain_id`, `ticket_id`, `complain_text`, `complain_image`, `complain_audio`) VALUES(?,?,?,?,?)';
  $query=$db-&gt;prepare($sql);
  $values=array($complain_id, $ticket_id, $complain, $imageData, NULL);;
  $query -&gt; execute($values);
  $fetch_sql=$sql="SELECT Name, Email FROM  `person_table` WHERE ticket_id ='".$ticket_id."'";
  $fetch_query=$db-&gt;prepare($fetch_sql);
  $fetch_query-&gt;execute();
  $fetch_obj=$fetch_query-&gt;fetch(PDO::FETCH_OBJ);
  
  $admin_email = "Abhijog@feedbackdesignlab.com";
  $email =$fetch_obj-&gt;Email;
  $user_name=$fetch_obj-&gt;Name;
  $subject = 'Complain Registration';
  $comment = 'Dear '.$user_name.', your Complain ID is '.$complain_id.'. Use the Complain ID to track your complain.';
  mail($email, "$subject", $comment, "From:" . $admin_email);
  echo "The complain has been lodged.Please check your e-mail for the complain ID for tracking";
  </code></pre>
  
  <p>Everthing is getting inserted in the database except the image.I can't find any bug in my code.please help</p>