I have codes that sets a URL and pass it onto Image myImage= new Image(myURL);
The problem is there doesn't seem to be any validation of the URL (i.e. the file actually exists at the stated URL) with the URL' constructor.
I even manage to call myURL.openConnection.connect() with no exceptions thrown at all.
What do I need to do to validate the existence of a file? FYI I am using merely the file protocol
The problem is there doesn't seem to be any validation of the URL (i.e. the file actually exists at the stated URL) with the URL' constructor.
I even manage to call myURL.openConnection.connect() with no exceptions thrown at all.
What do I need to do to validate the existence of a file? FYI I am using merely the file protocol