java - GWT Image setUrl() -
I am using - and new - GWT and I have a Image to view image
This image was found on the file system I wrote.
string src = "file: ///d: / manifolder / mefile.jpg"; Image image = new image (); Image.setUrl (SRC);
But the image is not showing!
You must specify either the entire URL ( http://www.example.com /img/myfile.jpg
) or (better yet) just relative to root: /img/myfile.jpg
. And, of course, you have to keep your directories in your directory.
This is a simple setup if you have more images and want to optimize them to attract (a lot of images -> there are many requests on the server), take a look.
Comments
Post a Comment