1

I am using ASIFormDataRequest to send a POST request and at the same time upload a couple pictures. Strangely, the same request just worked fine on emulator but not on the real device. And I am getting 400 returned from server side for the device one. From what I can tell the only difference is that on the emulator the picture was from photo album, while on the device the picture was taken by the camera, but does it really make the difference? What else could be the possible reason for the 400 error?

tom
  • 14,273
  • 19
  • 65
  • 124

2 Answers2

0

I am not sure what your problem is but you shouldnt encounter any difference between taking the photo from the camera or the album. Anyway, I would suggest you change ASIHttp, which is discontinued, by another similar one such as AFNetworking (https://github.com/AFNetworking/AFNetworking).

Angel G. Olloqui
  • 8,045
  • 3
  • 33
  • 31