On Mon, Sep 07, 1998 at 11:06:22AM +0100, [EMAIL PROTECTED] wrote:
> I wrote:
>
> > What is the meaning of url.toExportedForm() from image contained in JAR
> > called something like this?
> >
> > systemresources://FILE1/+/images/new.gif
> >
> > I had a lot of trouble reading image file (GIFs) from JARs.
>
> I had a long look at the FAQ (www.afu.com) and applied the getResourceAsStream()
> example there.
> // Third, Try to opening the resource as as CLASSPATH specification.
> // e.g. It may be part of JAR or ZIP
> imageStream =
>getClass().getClassLoader().getSystemResourceAsStream(url_image);
> Image img = null;
Drop the ".getClassLoader()"
imageStream = getClass().getResourceAsStream(url_image);
--
Louis-David Mitterrand - [EMAIL PROTECTED] - http://www.aparima.com
Which is worse, ignorance or apathy? Who knows? Who cares?