The following java method is a simple way to download a file stored on the internet.

Let’s say you want to download the file at the address http://www.yourdomain.com/file.zip and then you want to store it into C:, with the following method you’ll have to do the following simple call:

downloadAndStoreFile(“http://www.yourdomain.com/file.zip”, “C:\\file.zip”);

 

and here you are the method:

 

Gg1