Why is my graphics control not displaying my image?
I have created an ashx handler that returns an image to my flex app. If I go directly to the url (www.mysite.com/handler.ashx?id=34) the browser displays the image. If you set the image control source to flex to the same address. I get "Error # 2124: The uploaded file is an unknown type." Any hints
source to share
There are several things you can check that might help:
-
Security: "You can refer to an image using a URL, but the default security settings allow Flex applications to access resources stored in the same domain as your application. To access images on other servers, you must use a crossdomain file. xml. "
-
Can you upload or insert other images?
Check out this documentation to see if there is anything you missed when uploading the image: http://livedocs.adobe.com/flex/3/html/help.html?content=security2_04.html
Here is a link that can help troubleshoot the httpstatus image: http://blog.flexexamples.com/2007/11/04/detecting-whether-an-image-loaded-successfully-in-flex/
source to share