I worked on a project that i need to transfer GIF to the applet from server over TCP socket. The problem is that when i transfer the image it become static (the last frame displayed).
I tried to transfer (ICON) where i loaded the image on server side but it has the same result.
So, Is there any class to read animated gif so i can transfer it by ObjectOutputStream? or any way else?
Server Side:
ImageIcon icon = new ImageIcon("D:\\Data Files\\simu.gif");
Mat_out.writeObject(icon);
Client Side:
ImageIcon icon = (ImageIcon) Mat_in.readObject();
jLabel2.setIcon(icon);