• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to Transfer file from client browser to server?  RSS feed

 
mylifeisjava javaislife
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did lot of research and found that using input type=file in jsp i could serach for the file on the client system.I could not make out what do I write on the server side(i.e. in my java class)to get the file content or how to access the file.
Please help me with some code or any links.Thanks for your help.
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to do a file upload. Do a search for "jsp upload" or "servlet upload" or even "HTML upload".
I have a free web-app that does file uploading - you grab that to see how it works. http://filenabber.com/filenabber.html
brian
 
Steve Grant
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear ,
You can use Common-FileUpload from Apache site to get the content on the server side from the client side. It works very well and its free.
Rgds & Thx,
Siddharth K
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mylifeisjava javaislife",
Your display name is not valid. Please see the rule in display names here.
Your display must be two words: your first name, a space, then your last name. Fictitious names are not allowed.
Please edit your profile and select a valid display name. Accounts with invalid disaply names get deleted, often without warning.
Also, please don't post the same question in multipl forums, it creates duplicate conversations and wastes the time of the people trying to help you. I'll ask for this thread to be closed (it's in the wrong forum). Peole who want to help should see this thread.
thanks,
Dave.
[ January 20, 2004: Message edited by: David O'Meara ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!