title: How to send image with post request
body: <p>I need to send post request with data in format like key=value and I am working that like ( url is url of ws and that is ok ) </p>
  
  <pre><code> HttpEntityEnclosingRequestBase post=new HttpPost();
   String result = "";
   HttpClient httpclient = new DefaultHttpClient();
   post.setURI(URI.create(url));
   List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);
   for (Entry&lt;String, String&gt; arg : args.entrySet()) {
      nameValuePairs.add(new BasicNameValuePair(arg.getKey(), arg
                      .getValue()));
      }
   http.setEntity(new UrlEncodedFormEntity(nameValuePairs));
   HttpResponse response;
   response = httpclient.execute(post);
   HttpEntity entity = response.getEntity();
   if (entity != null) {
      InputStream instream = entity.getContent();
      result = getStringFromStream(instream);
      instream.close();
      }    
   return result;
  </code></pre>
  
  <p>This is ok when I send String data. My question is what to modify when one parameter is picture adn others are strings ?</p>