I am trying to load images from server to CS3 via XML file, which is created by php. My xml structure is like this:
<picture>
<id></id>
<name></name>
<size></size>
<binary><?=base64_encode($contents)?></binary>
</picture>
$contents = loaded from image file using fopen and fread.
I load the xml file and can access all the data. I also have base64 decoder working on flash, but my question is how to display the picture i loaded this way.
There’s no way you can accomplish this sending a URL in the XML?
As far as the base64 encoding, I believe you have to use an external AS3 library for that. I used one a while back, I don’t remember what it was called though. A quick google search should turn a few up.
The question is not about how to encode/decode base64, please read my post before replying. Its clearly said that i have base64 decoding working on flash. I wanted to know how to display the picture on flash when i have binary data in variable.
The base64 encoder/decoder I used had methods for handing binary image data as well.
Quit being so poignant in your responses.