Archana
Archana

Reputation: 519

send audio file and string data to server from android

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.

Upvotes: 0

Views: 1372

Answers (1)

Nishant
Nishant

Reputation: 93

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

Upvotes: 2

Related Questions