• Post Reply Bookmark Topic Watch Topic
  • New Topic

Post Image and String from HttpPost

 
Rohit Savant
Greenhorn
Posts: 21
Fedora Java ME Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I want to send an image and a String at the same time from a single HttpPost object.
How can I achieve this.

Note: - The server is developed is Jarvel


Thanks in advance for your help,

Rohit Savant
 
Rohit Savant
Greenhorn
Posts: 21
Fedora Java ME Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Output
405 Method not Found

Is this problem from my side or server side.?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the target URL support POST?
 
Rohit Savant
Greenhorn
Posts: 21
Fedora Java ME Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Ulf the url does support POST.
Because the same kind of app is being developed for apple and he is getting the response.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, 405 means "method not supported", so apparently the code is sending a POST to an URL that does not support it.
 
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!