# URLVariables from URLLoader with dataformat.BINARY?

**URL:** <https://forum.kirupa.com/t/urlvariables-from-urlloader-with-dataformat-binary/293416>\
**Category:** flash\
**Created:** [July 28, 2009, 5:33pm UTC](https://forum.kirupa.com/t/urlvariables-from-urlloader-with-dataformat-binary/293416 "2009-07-28T17:33:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Post date:** [July 28, 2009, 5:33pm UTC](https://forum.kirupa.com/t/urlvariables-from-urlloader-with-dataformat-binary/293416/1 "2009-07-28T17:33:02Z")

</div>

Hi all.

I send an image converted to a byteArray to a PHP server where, if saved successfully, returns an echo response.

$someString = “anythingcangohere”  
echo “responseString=” . $someString;

Alright.

Back in AS3. I have caught this response and i can place it in a text field like this:

stage.textField.text = e.target.data;

This shows me what i want:

“responseString=anythingcangohere”

Here is the problem, when i try to covert this to urlVariables:

var urlVariables:URLVariables = URLVariables (e.target.data);  
stage.textField.text = urlVariables.responseString;

The SWF fails silently.

No matter what i do to the data first, i always get a silent failure.

I have a feeling that it is because my URLLoader class is of dataType URLLoaderDataFormat.BINARY;

If this is the case, can you please advise me because i cant progress :(. Its one of those things that make no sense. If the textfireld understanding e.target.data then why cant URLVariables?

Thanks.
