<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/03/17/displaying-an-image-saved-as-a-base64-encoded-string-in-flex-3/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
		layout="vertical"
		verticalAlign="middle"
		backgroundColor="white"
		creationComplete="init();" viewSourceURL="srcview/index.html">

	<mx:Script>
		<![CDATA[
			import mx.utils.Base64Decoder;

			private var base64Dec:Base64Decoder;

			private function init():void {
				var byteArr:ByteArray;

				base64Dec = new Base64Decoder();
				base64Dec.decode(logo);

				byteArr = base64Dec.toByteArray();

				img.load(byteArr);
			}
		]]>
	</mx:Script>

	<mx:String id="logo" source="logo.txt" />

	<mx:Form width="100%" height="100%">
		<mx:FormItem label="image:">
			<mx:Image id="img" />
		</mx:FormItem>
		<mx:FormItem label="source:"
				width="100%"
				height="100%">
			<mx:TextArea id="textArea"
					text="{logo}"
					editable="false"
					width="100%"
					height="100%" />
		</mx:FormItem>
	</mx:Form>

</mx:Application>

