0 Replies Latest reply on Nov 29, 2006 5:12 AM by Albert3

    Get image through proxy service

    Albert3
      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?