bharath
bharath

Reputation: 14453

How to send multi parameter in form data while uploading a file to server on Android?

I need to send the multi parameter in form data while uploading a file to server on Android. I used this code for uploading a files to server. Here my doubt is how to send multi parameters in form data?

Upvotes: 1

Views: 662

Answers (1)

Argyle
Argyle

Reputation: 3394

You'll probably want to use the Apache HTTP client stuff. Put a List<NameValuePair> of your desired values into a UrlEncodedFormEntity, set it as the entity in an instance of HttpPost, and POST away.

Apache HTTP Client JavaDocs for Android are here.

Upvotes: 1

Related Questions