 <p>Post it as a string?</p> <pre><code>byte[] array = new byte[n]; array[0] = .. array[n] = .. String dataToSend = ""; For(int i = 0; i &lt; array.length -1; i++){ dataToSend += (char) array[0]; } // your post code here ... pairs.add(new BasicNameValuePair("key1", dataToSend)); </code></pre>