Can we send image as a string parameter in webserrvices in android
<p>I need to send image as a string parameter in webservices to server.Just like we send string parameter in webservices.For this I am converting image into string as follows</p>

<p>Resources r = this.getResources();</p>

<p>Bitmap bm = BitmapFactory.decodeResource(r, R.drawable.icon);</p>

<p>ByteArrayOutputStream baos = new ByteArrayOutputStream();<br>
        bm.compress(Bitmap.CompressFormat.JPEG, 50, baos); //bm is the bitmap object<br>
        byte[] image = baos.toByteArray();</p>

<p>String encodedImage = Base64.encodeToString(image,Base64.DEFAULT);</p>

<p>Now I need to send this string encodedImage like this .</p>

<p>calling  Url-- <a href="http://pdtrptr/asfsdf/services/add.php?file=encodedImage" rel="nofollow">http://pdtrptr/asfsdf/services/add.php?file=encodedImage</a></p>

<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>
