I have created an ashx handler that returns an image to my flex app. If I go directly to the url for example (www.mysite.com/handler.ashx?id=34) the browser will display the image. If you set the source of an image control in flex to the same address. I get ‘Error #2124: Loaded file is an unknown type.’. Any hints
Share
There are a few things that you can check that may help:
Security: ‘You can reference an image by using a URL, but the default security settings only permit Flex applications to access resources stored on the same domain as your application. To access images on other servers, you must use a crossdomain.xml file.’
Can you load or embed other images?
Review this documentation to see if there is anything you missed with loading your image: http://livedocs.adobe.com/flex/3/html/help.html?content=security2_04.html
Here is a link that can help with troubleshooting the image httpstatus: http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/