It is possible to show an image by directly typing
Img image = new Image();
image.setSrc("photo.jpg");
if photo.jpg is under “images” folder under Web-Content.
I have task to show an image which is in a folder on desktop, is that possible in any way? I did lots of research but not come to a solution. Thanks.
Smartgwt 2.4
Ubuntu 10.10
Gwt 2.2
If your structure is something like:
…you would use images from the
war/imagesfolder in files within theclientpackage by referencing them asimages/image.png. So your code ought to look like:The path of the image is relative to the
wardirectory.