0

I have a java program at the client side from which I need to send an image to upload to the server running the php script.
Can anyone please suggest ways of doing this?

Pooja N Babu
  • 347
  • 3
  • 5
  • 15
  • 1
    just make a POST HTTP request. e.g http://stackoverflow.com/questions/1067655/how-to-upload-a-file-using-java-httpclient-library-working-with-php-strange-pr – scibuff Apr 16 '12 at 16:37

1 Answers1

1

You'll need to send an HTTP POST request with the image data included as the body.

As for a java solution, here's a similar post:

How to upload binary data using POST

Community
  • 1
  • 1
Kasapo
  • 5,294
  • 1
  • 19
  • 21