Accessibility

TechNote

mx:HTML component displays bytes instead of image (Adobe AIR)

Issue


If the mx:HTML control is linked directly to an image file, as in the following example, the bytes of the image file are shown instead of the image.

<mx:HTML>
<mx:location>
www.myserver.com/showimage.jpg
</mx:location>
</mx:HTML>

Reason


This is a known issue in Adobe AIR 1.0.

Solution


To display images, link to a page that embeds the image rather than linking directly to the image.

For example, if you have a page on your server called "showimage.php"that could embed and display an image, then your code might look something like this:

<mx:HTML>
<mx:location>
http://www.myserver.com/showimage.php?image=
/image.jpg
</mx:location>
</mx:HTML>

You could also construct individual pages for your images.

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:kb403127
OS:Windows Vista
Windows XP

Products Affected:

adobeairsdk
air
flex