title: flex mobile - load image from bytearray - Error #2044: Unhandled securityError
body: <p>In a mobile application I try to load an image from a sqlite database and want to show it in a mxml image component. 
  The loading of the bytearray works fine, but when I assign the bytearray to the image component I get following error. </p>
  
  <blockquote>
    <p>Error #2044: Unhandled securityError:. text=Error #3226: Cannot import
    a SWF file when LoaderContext.allowCodeImport is false.</p>
  </blockquote>
  
  <p>I also tried to save and load the image as a base64 string. but it does not help.</p>
  
  <p>Even if I try a simple thing like this:</p>
  
  <pre><code>var byteArray:ByteArray =  img1.loaderInfo.bytes;
  img2.source = byteArray;
  </code></pre>
  
  <p>just add the bytearray of img1 to the empty img2 - the same error occurs.</p>
  
  <p>whats going wrong here?
  many thanks for your help,
  cheers, 
  Flo</p>