Thanks for the reply Johannes

The client has specified the base64 data be sent inside an xml file. Not
sure why or exactly what they do on the server side of things but I just
wanted to be sure what I was sending them was infact xml data.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: 12 July 2007 10:42
To: [email protected]
Subject: Re: [Flashcoders] Sending Base64 Encoded Data As XML Data

its simple string concatenation after the base64 encoding, although you
never create a xml object, which makes me wonder why do you not just send
and blob text instead of xml.

On 7/12/07, Paul Steven <[EMAIL PROTECTED]> wrote:
>
> Thanks for the advice Johannes
>
> Does that mean my code looks ok to you?
>
>
> >
> >
> > var dataStrEncoded:String=Base64.Encode(ByteLoader.data);
> >
> > var XMLString:String;
> >
> > XMLString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
> > XMLString += "<file>";
> > XMLString += "<![CDATA[" + dataStrEncoded + "]]>";
> > XMLString += dataStrEncoded;
> > XMLString += "</file>";
> >
> > loader = new URLLoader();
> > loader.addEventListener(Event.COMPLETE, xmlLoaded);
> >
> > var request:URLRequest = new URLRequest(ScriptPath);
> >
> > request.method = URLRequestMethod.POST;
> >
> > var variables:URLVariables = new URLVariables()
> > variables.xml = XMLString;
> >
> > request.data = variables
> >
> > loader.load(request);
> >
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
>
> --
> j:pn
> http://www.memorphic.com/news/
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



-- 
j:pn
http://www.memorphic.com/news/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to