This can easily be done with the help of the Apache Commons FileUpload library (on the client) and the Apache HttpClient library (on the server). See http://faq.javaranch.com/java/FileUpload for more information.
I had written a file upload application using jsp and servlets using apache.commons.fileupload package. The application uses port 8080 to upload files to server (in a particular folder). I checked the application with 790 MB rar file uploading. It's working. Try to wrtie a servlet that upload the files using apache.commons.fileupload package (can be downloaded from apache's site). even if the firewall is on the application can upload file through port 8080 of Tomcat server. Hope you will be able to write the code to upload the file, else you can ask for the application code to me.
Adi Kulkarni wrote:Can you share the code with me since I need to try it out soon.
JavaRanch is NotACodeMill. We like for people to try to arrive at their own solution, since they will learn a lot more that way. This one in particular is not hard (the FileUpload documentation is pretty extensive). Let us know how it goes.