I have a picture from camera as bitmap. This picture I want to send as jpeg to the server via http Post, something like this:
Bitmap photo;
StringEntity reqEntity = new StringEntity(photo);
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(request);
I have this code from azure
//Request headers.
request.setHeader("Content-Type", "application/json"); request.setHeader("Ocp-Apim-Subscription-Key", subscriptionKey);
// Request body.
StringEntity reqEntity = new StringEntity("{\"url\":\"upload.wikimedia.org/wikipedia/commons/c/c3/…\"}");
request.setEntity(reqEntity);