import org.apache.commons.io.FileUtils; java.net.URL l_url = new java.net.URL(""); File file=new File(""); FileUtils.copyURLToFile(l_url, file);