I am able to do a POST of a parameters string. I use the following code:
String parameters = \"firstname=john&lastname=doe\";
URL url = new URL(\"http://
These links might be helpful:
Take a look here Sending POST data in Android
But use ByteArrayEntity.
byte[] content = ...
HttpPost httpPost = new HttpPost(url);
httpPost.setEntity(new ByteArrayEntity(content));
HttpResponse response = httpClient.execute(httpPost);
You could base-64 encode your data first. Take a look at the aptly named Base64 class.