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

0


source to share


4 answers


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/

+1


source


Make sure the MIME type returned in the image response header is correct. Flash Player can get confused if your response header says it contains "text / html" and not something like "image / png".



0


source


The flash player has a bug.

http://bugs.adobe.com/jira/browse/FP-42

0


source


Make sure the submitted image is not a bitmap. Browsers can handle bitmap images that claim to be PNG / JPEG Flash cannot.

0


source







All Articles