java.io.InputStream to java.net.URL