android image upload to quick base db
<p>i am developing an android app to upload images to quick base Data Base (https://www.quickbase.com) according to the quick base API , image should upload in base64 format,and its should send via xml formatted post request and no MIME headers and types allowed (http://www.quickbase.com/api-guide/whnjs.htm) . every text data going to the data base but image not uploading to the server,here is my code, anyone can give me a help ? </p>

<pre><code>String tempXml = "&lt;?xml version='1.0' ?&gt;&lt;qdbapi&gt;&lt;udata&gt;mydata&lt;/udata&gt;"
+ "&lt;ticket&gt;6_bg4at2ksw_bzazsh_b_cmti6qddhsrvgqds7cqmgbt32t6wcdkcse2c8j8ypyb&lt;/ticket&gt;"
+ "&lt;apptoken&gt;cwfcy7gdzqrsyncqbi2bn4u4kr&lt;/apptoken&gt;"
+ "&lt;field fid='6'&gt;sample data&lt;/field&gt;&lt;field fid='7'&gt;sample data&lt;/field&gt;"
+ "&lt;field fid='8'&gt;sample data&lt;/field&gt;&lt;field fid='9'&gt;sample data&lt;/field&gt;"
+ "&lt;field fid='10'&gt;sample data&lt;/field&gt;&lt;field fid='12'&gt;sample data&lt;/field&gt;"
+ "&lt;field name='message' filename='testImage.jpg'&gt;"
+ testImageName + "&lt;/field&gt;&lt;/qdbapi&gt;";

DefaultHttpClient httpclient = new DefaultHttpClient();
String strURL = "https://www.quickbase.com/db/bgtc5pacu?act=API_AddRecord";
HttpPost httpPost = new HttpPost(strURL);
httpPost.addHeader("Content-Type", "application/xml");
StringBuilder sb = new StringBuilder();
sb.append(tempXml);
StringEntity entity = new StringEntity(sb.toString(), "UTF-8");
httpPost.setEntity(entity);
HttpResponse res = httpclient.execute(httpPost);
</code></pre>
