I want to pass a byte array object from flex code to C code.How to do that?
Passing a ByteArray from Flex to C++ http://nexus.zteo.com/blog/2008/12/22/adobe-alchemy-passing-a-bytearray-from-flex-to-c/
Multiple approaches outlined here: http://blog.debit.nl/2009/03/using-bytearrays-in-actionscript-and-alchemy/
You can use AMF to pass an ActionScript ByteArray. So you're set on the Actionscript side. On the server side, there are slim pickings for AMF server implementations in C++. I use BlazeDS for Java, but the only one I can seem to find for C++ is AMFPP.