If you are using Java as server side , then this string need to be converted into bytes and then send it to the ServletInputStream. Might this will be help. Thanks,
with Regards, Jitendra Jain ----- Original Message ---- From: jitendra jain <[EMAIL PROTECTED]> To: [email protected] Sent: Tuesday, 30 September, 2008 9:13:59 AM Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte All the request data that is send is String. Thanks, with Regards, Jitendra Jain ----- Original Message ---- From: Troy Gilbert <troy.gilbert@ gmail.com> To: [EMAIL PROTECTED] ups.com Sent: Tuesday, 30 September, 2008 9:03:14 AM Subject: Re: [flexcoders] URLRequest, ByteArray, and the 0 byte > We're also working around this by Base64-encoding, but this is clearly > less than ideal. It definitely seems like a Flash Player bug. We ran > into this when doing AlivePDF REMOTE saves (i.e., bouncing the file off > the server). Do you know when you ran into this, Troy? I tested our > particular problem on Windows and on OS X last week, and neither had the > issue. // this byte array probably needs to be bigger to actually end up // with a zero-byte in the compressed data var bytes:ByteArray = new ByteArray(); bytes.writeUTFBytes ("This is just some filler text."); bytes.compress( ); // URLVariables automatically encodes its dynamic properties // using a www-form-url- encode format, i.e. %12%34%56%78% 90 var variables:URLVariab les = new URLVariables( ); variables.username = "troy"; variables.action = "save"; variables.data = bytes; // when the request is made, 'variables' is converted to a string // the nulls in the ByteArray are not escaped, so they truncate the data var request:URLRequest = new URLRequest("http://mywebserver/ myscript. php"); request.method = URLRequestMethod. POST; request.data = variables; // Troy. ________________________________ Add more friends to your messenger and enjoy! Invite them now. From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/

