Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deocde AMF stream

 
chris kumar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

How can we decode amf stream ..? Is there any library that helps doing, that if so can you please point me to a web resource or an
example.

Thanks,
Chris
 
Dan Orlando
author
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a bit of a can of worms once opened, but if you are good with low-level TCP/IP communication (binary and hex), it may not be too cumbersome for you. What you'll want to do is review the AMF0 and AMF3 open specification documents from Adobe, but beware that they are a bit dated (there are some "anomalies" in regard to data typing). For the server side, BlazeDS is open source, so you might want to download and decompile the JARs to see how it does it. I'll warn you in advance though, don't be surprised to find some pretty messy code inside if you do decompile Blaze. For the client side, dig into the classes in the mx.messaging package.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic