Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I want to upload a picture from client's computer to the server  RSS feed

 
makk mukhi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What should be the best way of doing that and how do that.
please help...
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do it with the file uploads. you can have a form input field of type file and have your servlet support file upload
Look at this servlet file upload example
If you are using tomcat 7, you can use the built in file upload support introduced in servlet 3.0 spec. See Servlet 3.0 File Upload Example
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!