Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes sending picture. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "sending picture." Watch "sending picture." New topic

sending picture.

sameer patil

Joined: Jan 01, 2008
Posts: 6
i want to send the picture to the server using html form.
Is it possible to send a picture to the server?
which is attribute used for that? and how i retrieve it in the servlet.
is get parameter work for that.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You want to upload an image file? Is that what you are asking?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
If you are talking about uploading a picture, read up on the HTML form element of type upload.

You can use a library like Commons FileUpload to handle the server side, if that's a servlet container.
I agree. Here's the link:
subject: sending picture.
It's not a secret anymore!