Hi to all,

I wrote the java pgm for download the webpage content(html+images) and write on local host.Its wrks fine .But some time it stop while downloading .ie it download only some pages and images.I wrote pgm within try &catch.It doesnt throw any exception like connection time out,connection reset;
iam using URL class .

URL url = new URL("http;//www.somewebiste.com");
BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));

Plz help me.

Thanks in advance.

Document download/upload is best to manage through use of thread in case of connection timeout