开发者

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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜