I'm trying to pass a bitmap from an AIR app (server) to another (client), using the writeObject() method from the Socket class.
clientSocket.writeObject(myBitmap);// (var myBitmap:Bitmap)
clientSocket.flush();
My problem appears when I try to get the bitmap, on the client app. Using the method readObject(), I'm obtaining a generic Object, with all properties of the bitmap. I can't convert this object to bitmap by any way.
var receivedObject:* = socket.readObject();
trace(receivedObject);// [Object Object]
trace(receivedObject as Bitmap); // null
Some help please?
This kind of process is not well documented by Adobe.
Many thanks.