Pass a local file in to URL in Java

new File(path).toURI().toURL();

Leave a Comment