So... I'm currently trying to load an image from Amazon via a server-side proxy.
There isn't a friendly crossdomain file where the the image is located (e.g. an album cover), but the proxy is doing what it should and gets the jpg.
Actually, I should be more specific - it returns the jpg data. I don't have a clue what to do with it.
For shits and giggles, here's a bit of what I get when I dump the result:
ÿØÿà�JFIF������ÿÛ�C�!"$"$ÿÛ�CÿÀ��J�K"�ÿÄ����������� ÿÄ
...which I'm assuming is raw bitmap data. This is how I'm getting it (a ColdFusion component accessed via NetServices):
<!--- Server-side proxy for getting around absence of a friendly crossdomain file --->
<cffunction name="getDataViaProxy" access="remote" returntype="any">
<cfargument name="url" type="string" required="yes" />
<cfhttp url="#ARGUMENTS.url#" method="get" redirect="no" timeout="10"/>
<cfreturn cfhttp.FileContent />
</cffunction>
And this is how I'm receiving it:
// handle image data retrieval success
private function getAlbumCoverImageViaProxy_Result(bmp:*):void {
// the ideal would be to put the data in a friendly format here
// and THEN pass it on.
var r:Request = new Request();
r.setMessage("onAlbumCoverImageViaProxy");
r.setData(bmp);
_mp.onRequest(r);
}
Here's what I'd like to know:
1. What type of object should I tell Flash to expect from the call ?
2. Once I have the result, what do I do with it to get it to display? Is it simply a matter of addChild(result), or does it need to be cast as a bitmap, bitmapdata, etc.?
3. What was the serial number of the V2 rocket in Gravity's Rainbow?

