Can be obtain a File object from URL? I try something like
URL url = new URL(urlString);
File file = Paths.get(url.toURI()).toFile();
but it obtained exception
java.nio.file.FileSystemNotFoundException: Provider "http" not installed
or https... depending on the protocol used. Assume that urlString contain a valid address.
Exist an altenative to get it the File object from URL or I'm on wrong way?
file:URLs represent files on the host system. Are you sure you need a File? You can read from a URL with its openStream method.