android http POST send two parameters including bitmap
<p>I was sending <code>String</code> via POST:</p>

<pre><code>            connection = new URL(UrlAddress).openConnection();
            connection.setDoOutput(true); // Triggers POST.
            //urlConnection.setChunkedStreamingMode(0);

            String charset = "UTF-8";  
            String param1 = "test";

            String query = String.format("param1=%s",
                    URLEncoder.encode(param1, charset));
            OutputStream output = connection.getOutputStream();
            output.write(query.getBytes(charset));

            inputStream = connection.getInputStream();
</code></pre>

<p>Can I send two parameters via one POST operation, like <code>String query = String.format("param1=%s&amp;param2=%s", ...</code>? I need to append bytes sequence parameter (bitmap picture) to POST after text type parameter, how should I write it?</p>