• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to retrieve image data send from iOS Swift through Alamofire on Heroku Servlet?

 
Martin Nanchev
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I have tried to retrieve image that was send from iOS to Heroku Servlet, but i get the following error: "Response status code was unacceptable: 405"

This is my request :



And this is my doPost method on Heroku:




Can you advice how can i fix it? Thanks in advance
 
Devaka Cooray
Marshal
Posts: 5209
508
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you call super.doPost(req, resp); ?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!