I have this weird issue, when I use
File FileToRead = new File(\"\\\\\\\\MYSERVER\\\\MYFOLDER\\\\MYFOLDER\\\\MYPICTURE.JPG\");
to read a f
Just specify the file path as URI:
File FileToRead = new File(new URI("file://MYSERVER/MYFOLDER/MYFOLDER/MYPICTURE.JPG"));
EDIT note that that string is an URI! It cannot contain spaces so you have to replace them with "%20" to make it work.