Re: Howto send Flex2 ByteArray type to java

Todd Hivnor <[email protected]> Fri, 04 May 2007 08:49:49 -0700
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
I haven't personally used OpenAMF with Flex2. I would be curious about 
your general experiences. Are things basically working?

In general the data translation in OpenAMF is done via the CarbonFive 
astranslator package. See:

http://carbonfive.sourceforge.net/astranslator/api/com/carbonfive/flash/package-summary.html#documentation

The carbonfive data translation is pretty good, it does a lot of 
conversion automagically. I would try creating a service method in Java 
that accepts a very generic argument like Object, Object[], ASObject, 
Array, or List. Then send the data from Flex to Java. In Java, take a 
look at what you got.


You might also use an AMF-aware web debugger like Charles or Service 
Capture to see the raw data flows.

 - Todd



[email protected] wrote:
> hi all,
>
> i'm developing a flex2/java application and i need to send a ByteArray from flex2 to the server app written in java.
>
> does anybody know if byteArray is supported and how I can do this operation?
>
>
> thanks
> alfdev
>
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/