Hi Magnus.

The GWT way of referencing images (and other static resources)  is to
use a ClientBundle. You can see some instructions at
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

Shay

On Jun 24, 2:58 pm, Magnus <[email protected]> wrote:
> Hi,
>
> I would like to store images near the classes that use them.
>
> However, I cannot find a GWT example which loads an images in the src
> folder (or a sub folder). I found many examples using
> class.getResourceAsStream, but this is not available in GWT client.
>
> How can I load an Image residing in src/.../<MyClass>/subfolder/
> myImage.png?
>
> Thanks
> Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to