Article View: borland.public.jbuilder.java.swing
Article #11481Re: Extracting images for Jar file in Netscape...(Urgent)
From: Tor Iver Wilhelmsen
Date: Tue, 25 May 1999 00:00
Date: Tue, 25 May 1999 00:00
12 lines
1055 bytes
1055 bytes
"Khurram Shakir" <kshakir@prosys.com.pk> writes: > this code work fine with appletviewer and Internet Explorer, but not in > Netscape Navigator 4.51. the url return null. Is this a bug in Netscape, > please help me, or give me other method for extracting image form Jar file. It's a known bug in Netscape that getResource() doesn't work: Use getResourceAsStream() (which does work), load the stream into a byte array (use ByteArrayOutputStream), and call createImage(array). (Remember to mention in your project report that Netscape's VM sucks. :-) )
Technical Details
Message-ID:
<uzp2tuswr.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7i6q7v$lr813@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,da674f7a28ca9c32 X-Google-Attributes: gid111d45,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: Extracting images for Jar file in Netscape...(Urgent) Date: 1999/05/25 Message-ID: <uzp2tuswr.fsf@sds.no> X-Deja-AN: 481909001 Sender: towi@SDSA1761 References: <7i6q7v$lr813@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing