HI, I have a BufferedImage in my client program.I want this to be sent to the server & converted into an ImageIcon only on the server.
code:
***************
public class SpyClient extends JFrame implements java.io.Serializable
{
--------
----
rob =new Robot();
Dimension d=Toolkit.getDefaultToolkit).getScreenSize();
System.out.println("dimension: "+d.toString());
bi=rob.createScreenCapture(new Rectangle(d));
soc2=new Socket("localhost",2000);
os=soc2.getOutputStream();
ObjectOutputStream ous=new ObjectOutputStream(os);
ous.writeObject(bi);
ous.flush();
os.close();
end of code:
***********
I receive an error that the object "java.awt.BufferedImage is not serializable".Is there any other way to do it?Please suggest me with some code as soon as possible.
Happy middling with
java.
Netharam