Read display a gif using a socket or fileinputstream in applet
Posted on 1997-07-19
I need to read a gif using either a socket connection or FileInputStream, convert to an image and display using graphics.drawImage . most methods seem to return an array of bytes, which I think I can convert to an image using MemoryImageSource, however I have found no concrete examples and just cannot get it to work. I would just use getImage but the image is cached at the browser and I can't have that, need fresh reload. I need a solid example of how to do this.