| Newsgroups |
gmane.comp.java.openamf.devel |
| Message-ID |
<3F764ED10646DC4496542563A6922D1B09A329C7@MAILSV13.msg.nttdata.co.jp> |
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
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Openamf-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-developer