title: Need to display base64 encoded images from sqlite into a flex datagrid
body: <p>I have thumbnail images (encoded base64) as a string in a sqlite db.</p>
  
  <p>I know how to decode and display the image, but I want to display it in a datagrid, so I have to retrieve (no php) the image, decode it and display it in the datagrid.</p>
  
  <p>I can't think of how to do the manipulation (decode and display) to show it in the datagrid.</p>
  
  <p>Currently my datagrid looks like:</p>
  
  <pre><code>&lt;mx:DataGrid id="dg" left="60" right="51" top="200"   fontSize="25"  allowMultipleSelection="false" visible="false" dataProvider="{dp}"
                 horizontalCenter="3" verticalScrollPolicy="auto" editable="true" selectionColor="#FFFF00" rollOverColor="haloSilver"&gt;
      &lt;mx:columns&gt;
        &lt;mx:DataGridColumn headerText="Index:"            dataField="id" visible="false"/&gt;
        &lt;mx:DataGridColumn headerText="Image"             dataField="image"       width="150"/&gt;
        &lt;mx:DataGridColumn headerText="Description"       dataField="description" width="150" /&gt;
        &lt;mx:DataGridColumn headerText="Web Address (URL)" dataField="url"         width="250"&gt;
          &lt;mx:itemEditor&gt;
            &lt;fx:Component&gt;
              &lt;mx:TextInput restrict="a-zA-Z+\-.0-9@" maxChars="50" /&gt;
            &lt;/fx:Component&gt;
          &lt;/mx:itemEditor&gt; 
        &lt;/mx:DataGridColumn&gt;
      &lt;/mx:columns&gt;
    &lt;/mx:DataGrid&gt;
  </code></pre>
  
  <p>and my sql code like:</p>
  
  <pre><code>  sql.text = "SELECT id, image, url, description FROM  bookMarks;";
  
    sql.execute();              
    var result2:SQLResult = sql.getResult();
  </code></pre>
  
  <p>Which currently display the base64 encoded string (as expected)</p>