0

I am using this code to send a file to server upload an image and audio in One request in android

Now my problem is I want to send some string parameters along with request. How can I do that?

Community
  • 1
  • 1
Kikki
  • 496
  • 1
  • 10
  • 17

1 Answers1

1

I don't have any hands on experience with this, but from looking at your code, I would think you could do it in the code below

entity.addPart("NEW_PARAMETER", new StringBody("some_value"));

Couldn't you just add more of these, and get them in your server side code just like your accessing the other values your sending?

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Woody
  • 363
  • 2
  • 14