[flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
Is it possible to simply transfer data over http that has been encoded in AMF format, ie to bypass all the other remoting stuff and just use AMF as one might use XML? I've been looking at the docs and online and all the docs seem to assume you want the whole remoting thing with a gateway

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Haykel BEN JEMIA
http://www.roboncode.com/articles/144 Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Feb 17, 2009 at 11:45 AM, Guy Morton g...@alchemy.com.au wrote: Is it possible to simply transfer data over http that has been encoded in AMF format, ie to bypass all the

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Johannes Nel
you mean build an swf and download that and get the compiled in data from that On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton g...@alchemy.com.au wrote: Is it possible to simply transfer data over http that has been encoded in AMF format, ie to bypass all the other remoting stuff and just

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Peter Hall
ByteArray supports readObject() and writeObject() which read and write objects using AMF. The ByteArray can be written to disc as a file, or sent to a server as a variable (you may have to 7bit- or base64-encode it). Once you have this file, you can load it into your application using any means

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
Thank you...that's exactly what I was missing! On 17/02/2009, at 10:05 PM, Haykel BEN JEMIA wrote: http://www.roboncode.com/articles/144 Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Feb 17, 2009 at 11:45 AM, Guy Morton g...@alchemy.com.au wrote: Is

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
No, I just meant to encode my data in AMF format instead of XML for faster/more compact transfer over http. On 17/02/2009, at 10:05 PM, Johannes Nel wrote: you mean build an swf and download that and get the compiled in data from that On Tue, Feb 17, 2009 at 12:45 PM, Guy Morton

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Guy Morton
Yes, thanks, I knew the tools were all there, just didn't know how to put it all together. The post Haykel Ben Jemia sent made it all clear. On 17/02/2009, at 10:38 PM, Peter Hall wrote: ByteArray supports readObject() and writeObject() which read and write objects using AMF. The ByteArray

Re: [flexcoders] AMF instead of XML over http?

2009-02-17 Thread Anirudh Sasikumar
Hi, This is an excellent question. AMF has lots of potential as a data format. Peter is right. You can leverage ByteArray. I have a Flex component that internally does this (but it only expects the result from the HTTP call to be in AMF, you'd need to manually use ByteArray.writeObject() to