| 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
|
 |
 |
|
|
subject: how to transfer a file from client to server???
|
|
|