0

I want to send audio file and some string data to server from android and I am using the same as given in this link (upload an image and audio in One request in android), but I am getting the error where I am adding the data.

entity.addPart("title",new StringBody("hello"));

I have already add httpmime-4.0.jar and apache-mime4j-0.4.jar files through build path.

How can I do the code error free and send audiofile and data to server?

Thanks.

Community
  • 1
  • 1
Archana
  • 509
  • 2
  • 6
  • 20

1 Answers1

2

use this .jar file "httpmime-4.0-beta2.jar" .It worked in my case

Nishant
  • 93
  • 4