Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Get image through proxy service

Avatar

Not applicable
In my application I was using the Loader class to load an
image. That works, but now I want to use the proxy service to load
the image.



I don't see how I can use the loader in combination with the
proxy service. So I tried to use the HTTPService:



myImage.data = Bitmap(myService.lastResult);

<mx:HTTPService id="myService" url="
http://.../servlet"
resultFormat="object" result="resultReceived()"
useProxy="true"/>



That generates an error: type coercion failed: cannot convert
"?PNG .." to flash.display.Bitmap.

Is there a way to use the proxy service to get an image?



0 Replies