title: Can we send image as a string parameter in webserrvices in android
body: <p>I need to send image as a string parameter in <code>webservices</code> to server. Just like we send string parameter in <code>webservices</code>. For this I am converting image into string as follows</p>
  
  <pre><code>Resources r = this.getResources();
  
  Bitmap bm = BitmapFactory.decodeResource(r, R.drawable.icon);
  
  ByteArrayOutputStream baos = new ByteArrayOutputStream();  
  bm.compress(Bitmap.CompressFormat.JPEG, 50, baos); //bm is the bitmap object   
  byte[] image = baos.toByteArray();
  
  String encodedImage = Base64.encodeToString(image,Base64.DEFAULT);
  </code></pre>
  
  <p>Now I need to send this string <code>encodedImage</code> like this.</p>
  
  <pre><code>calling  Url-- http://pdtrptr/asfsdf/services/add.php?file=encodedImage
  </code></pre>
  
  <p>My question is how can we send this string image along with url --like above url</p>
  
  <p>Is server coding for receiving string image differs for android compare to iphone because (after sending the image from android to server, when trying to get from server i am getting null value), where as iphone mobile is able to send and receive the image.</p>
  
  <p>Thanks</p>