I am using the following line of code
ByteArrayBody bab = new ByteArrayBody(data, "/mnt/sdcard/p270.jpg");
It is throwing the following exemption
05-30 18:28:17.128: E/AndroidRuntime(5549): java.lang.NoClassDefFoundError: org.apache.http.entity.mime.content.ByteArrayBody
I have referenced http-mime-4.1.2.jar ( deleted it and downloaded again today). I have also cleaned the project and rebuild it. I still keep getting the same error.
I am using Android 4.04 and Eclipse.
Any suggestions?