Posted By:
Andre_TheMunchkin
Posted On:
Tuesday, June 19, 2001 12:21 PM
Applet problem: I need to retrieve images that are being updated frequently and therefore I need to disable caching Solution (well...): use URLConnection and turn caching off Solution problem: urlconection.getContent() returns an object that needs be deciphered (it's a gif). i'd rather not write the gif handler code so....??? What doesn't work: the existing content handler provided by sun does work in some browsers (linux netscape, ie5 win98), but generates security exceptions in others (classloader can't find the content/image/gif class, it seems). import sun.net.www.content.image.gif; ..
More>>
Applet problem:
I need to retrieve images that are being
updated frequently and therefore I need to disable caching
Solution (well...):
use URLConnection and turn
caching off
Solution problem:
urlconection.getContent() returns an object
that needs be deciphered (it's a gif). i'd rather not write
the gif handler code so....???
What doesn't work:
the existing content handler provided
by sun does work in some browsers (linux netscape, ie5 win98),
but generates security exceptions in others (classloader
can't find the content/image/gif class, it seems).
import sun.net.www.content.image.gif;
...
// open urlconnection to image file
...
gif gi = new gif();
smImg = createImage((java.awt.image.ImageProducer)gi.getContent(urlconnection));
Suggestions?
I've contemplated trying to find, decompile, and reverse
engineer some gif.class code, but that sounds like about
as much of a hassle as translating some C language gif
decoder routines.
anDY
<<Less