Hi Dan
I see two possible approaches here,
1. Use "Http tunneling" via using URLConnection.
- From your applet establish a URLConnection to one of the servlet, which you will have to write, and then just write the file as
String or FileOutputStream or FileWriter or something.
- Now, one can raise some issues when the file huge etc...but I am just blurring out from top of my mind
- The servlet I mentioned here would accept the file and also the parameter that specifies the location where we need to upload the file and write the file subsequently to the specified location.
2. Use some FTP client program to communicate and transfer the file.
- This FTP client can be a
java ftp client, which most probably you can obtain via googling things.
- Though for this you will need to have FTP server running on a machine where you want to transfer the data
3. Open a socket to the server user pure Client/Server thing to transfer the file.
Here, the applet would have to follow a restriction that says "applet can only open connections to the server from where it came"...
Hope this is going in some positive direction...
Regards
Maulin