ftp - java code to download a file from server -


In order to use Java code in windows, I need to download several files from the directory kept in the server. Those files are generated separately, so I do not know the names of those files, this is a way to save it to a specific folder using Java.

I am using the Apache Tomcat.

I have read all the threads related to Java file download. But none of them meets my requirement.

Use java.net.URL and java. Net.URLConnection class

Comments