In my application which is a simple java/jsp application running on Tomcat-Apache, I have to upload a file on another web server which is a IIS server. As of now I am using java.net.* package which has JarUrlConnection class, through this i am able to get the connection to the IIS server and even it is able to locate the directory/zipfile in the IIS server. but when i am trying to read the file byte by byte it gives a SocketTimeoutException....any idea how this can be resolved??? Or else Tell me how to achieve this upload from Tomcat to IIS functionality???