I've been trying to load an image into an ImageView
, and it works fine when I run it as a standalone app, but when I try to run it in the browser or as webstart it doesn't get shown.
I've tried:
ivFoto = new ImageView(new Image("file:/C:/Users/Carlos/Desktop/4fbzW.jpg"));
or
ivFoto = new ImageView(new Image("file:\\C:\\Users\\Carlos\\Desktop\\4fbzW.jpg"));
or
ivFoto = new ImageView("file:///C:/Users/Carlos/Desktop/4fbzW.jpg");
If anyone has any idea of what I'm doing wrong here, I would really appreciate the help!