File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to transfer a file from client to server??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to transfer a file from client to server???" Watch "how to transfer a file from client to server???" New topic
Author

how to transfer a file from client to server???

Monarch Bhojani
Ranch Hand

Joined: Feb 27, 2005
Posts: 46
I want to send a file from my client application which is in Swing,, what i am doing that i just select the file by using JFileChooser, and after doing this i am getting the selected file path..

Now if i am sending this path to servlet. Now, can anyone tell me how I can get that particular file by using that file path which the client has send to the servlet....? And my further stuff is to pass that file from servlet to another client which is also running in Swing...

Please provide me related help regarding this...

Thank You.
Monarch Bhojani
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Take a look at the commons/httpclient from the apache-jakarta group:
http://jakarta.apache.org/commons/httpclient/features.html
It's cover page states that it supports form based file uploads.

For the server side, look at
http://jakarta.apache.org/commons/fileupload


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to transfer a file from client to server???
 
Similar Threads
take in file from client machine
Help Plz (Urgent)
Common's FileUpload query??
Problem in streaming & creating files using FileOutputStream
How to call servlet which is inside the jar??