tags:

views:

5

answers:

0

import flash.net.registerClassAlias; import flash.utils.ByteArray;

import mx.core.BitmapAsset;

[RemoteClass]
public class ImageSocketMessage extends SocketMessage
{


    public function ImageSocketMessage()
    {
    }


            public var bitmapAsset:BitmapAsset;
    public var firstName:String;
    public var lastnName:String;
    public var bitmapArray:ByteArray;
}

I'm trying through socket, from client side, to send this object but on server side i'm getting a null for bitmapAsset. I could send bitmap data but i would probably get the same result. I read somewhere that BitmapData is not amf serialized in this case. Can somebody confirm me this? And also what is the best way of sending an image thorough socket connection in flex. Tnx