Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending picture.

 
sameer patil
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to upload an image file? Is that what you are asking?

Eric
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic