Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Get image through proxy service

Avatar

Former Community Member
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