Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to read file which is on client machine

 
kirtesh jain
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ....
I am one Servlet where iam reading a file ....reading file is not a problem that function is working perfectly on my system ,....i wanted to know when this servlet is running on server how can i read a file which is located into client machine ...?
please help me out
thank you
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. If the servlet needs a file from the client file system, then you need to add a file upload capability to the web app. That's fairly easy to do with a library like Apache Commons FileUpload.
 
kirtesh jain
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply....
please can you tell me more abt....
once again thank you...
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start here: FileUpload
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic