Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to upload  RSS feed

 
somaraju chilukamari
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all, iam developing a webapplication,, for this i ve to give an UPLOAD PHOTO option to the users.. i dont know how to do that ,, please tell me the answers.. is there any class to upload a file to server... how can we specify the location on the server..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JSP FAQ entry on this subject.
 
Srinivasan thoyyeti
Ranch Hand
Posts: 558
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Soamraju,

Bear told the big way. Thats the way we should do.

But for practicing it as a Basic step...

try doing this:

submit a path to a photo to Servlet.
In servlet using URL class try to read the stream from client.
and write it into another location for testing.

I didn't do it. Just got an idea.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Srinivasan thoyyeti:
I didn't do it. Just got an idea.


That is obvious as there is much more to it than that. The stream will be in the format of a multi-part request which must be parsed.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The FAQ mentioned by Bear is also accessible from the Servlet FAQ page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!