Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending file via http protocol

 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I was wondering how do I send a file through a browser dialog box? After the user selected the file to be submited from an applet, how do I receive the file from the server side?
Thanks.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't tried it but have read that you can use a servlet with the following basic code.

request is the HttpServletRequest object in your dopost(), doget() or service() method of your servlet.
Give it a try and let me know how it works out.
Good Luck
 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Carl!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic