|
From: <mah...@pm...> - 2008-12-10 08:02:24
|
Hi,
Which versions of flash and ActionScript are supported/targeted my
OpenAMF?
I am trying to deserialize an object with OpenAMF and the version of flash
is x-flash-version: 10,0,12,36.
Any ideas that it is possible or not as I am getting java.io.IOException:
Unknown/unsupported object type UNKNOWN: 0x10001
Regards,
Pushpendra
________________________________
From: SPS マハリヤ プシュペンド(システム方式技術)
Sent: Wednesday, December 10, 2008 2:00 PM
To: 'ope...@li...'
Subject: New to OpenAMF
Hi All,
I am new to this list and new to AMF also.
I have some binary data which is probably AMF data and wants to see the
contents of it.
I tried to write a simple program in java but unfortunately getting the
error.
Deserializing Message, for more info turn on debug level
java.io.IOException: Unknown/unsupported object type UNKNOWN: 0x10001
Code is
private void desiarlize(byte[] ba){
ObjectInputStream ois = null;
String[] sa = null;
ArrayList lst = new ArrayList();
try {
ByteArrayInputStream fis = new
ByteArrayInputStream(ba);
DataInputStream dis = new DataInputStream(fis);
AMFDeserializer amfd = new AMFDeserializer(dis);
AMFMessage amfmsg = amfd.getAMFMessage();
String body = amfmsg.getBodiesString();
System.out.println(amfmsg.toString());
//ois = new ObjectInputStream(fis);
}catch(Exception e){
e.printStackTrace();
}
}
Any help or guidance is appreciated.
Ba is some byte data like this
(byte) 0x00, (byte) 0x03, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x01, (byte) 0x00, (byte) 0x04,
(byte) 0x6E, (byte) 0x75, (byte) 0x6C, (byte) 0x6C,
(byte) 0x00, (byte) 0x02, (byte) 0x2F, (byte) 0x31,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0xE0,
(byte) 0x0A, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x01, (byte) 0x11, (byte) 0x0A, (byte) 0x81,
(byte) 0x13, (byte) 0x4D, (byte) 0x66, (byte) 0x6C,
(byte) 0x65, (byte) 0x78, (byte) 0x2E, (byte) 0x6D,
(byte) 0x65, (byte) 0x73, (byte) 0x73, (byte) 0x61,
Regards,
Pushpendra Maharya
|