*
The moose likes Servlets and the fly likes how to read file which is on client machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to read file which is on client machine" Watch "how to read file which is on client machine" New topic
Author

how to read file which is on client machine

kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
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
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
Thanks for reply....
please can you tell me more abt....
once again thank you...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
Start here: FileUpload
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to read file which is on client machine
 
Similar Threads
Servlet config in servlets
copying file from client system to and storing in server
Need help regarding my J2ME client server application
Help Needed in Applets....Urgent
Reading excel file