title: Send large post param in Android
body: <p>How do you send a large (>5MB) post parameter (among other post parameters) in Android? </p>
  
  <p>I'm currently using <code>org.apache.http.client.methods.HttpPost</code> and a list of <code>BasicNameValuePair</code> to send the post params.</p>
  
  <pre><code> HttpClient httpclient = new DefaultHttpClient();
   HttpPost httppost = new HttpPost(someURL);
   List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
   nameValuePairs.add(new BasicNameValuePair("param1", "value1"));
   nameValuePairs.add(new BasicNameValuePair("param2", hugeValue));
   httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
   httpclient.execute(httppost);
  </code></pre>
  
  <p><code>hugeValue</code> is a very large string that I would like to read from an <code>InputStream</code> and send as I read it. How can I do this?</p>