how to remove an error in "import org.apache.http.entity.mime.content.ByteArrayBody;"
<p>I tried to download [httpmime-4.0.1.jar] but still the error is there and     ------------------------------- </p>

<p>class ImageUploadTask extends AsyncTask {
        @Override</p>

<pre><code>    protected String doInBackground(Void... unsued) {

        try {

            HttpClient httpClient = new DefaultHttpClient();





HttpContext localContext = new BasicHttpContext();
            HttpPost httpPost = new HttpPost(getString(R.string.WebServiceURL) + "/cfc/iphonewebservice.cfc?method=uploadPhoto");
            MultipartEntity entity = new MultipartEntity(

         HttpMultipartMode.BROWSER_COMPATIBLE);





ByteArrayOutputStream bos = new ByteArrayOutputStream();
            bitmap.compress(CompressFormat.JPEG, 100, bos);
            byte[] data = bos.toByteArray();
            entity.addPart("photoId", new StringBody(getIntent()



.getStringExtra("photoId")));
            entity.addPart("returnformat", new StringBody("json"));
            entity.addPart("uploaded", new ByteArrayBody(data,"myImage.jpg"));



    entity.addPart("photoCaption", new StringBody(caption.getText().toString()));
            httpPost.setEntity(entity);
            HttpResponse response = httpClient.execute(httpPost,
   localContext);
</code></pre>
