title: Delphi load image save as blob in a sql database
body: <p>I'm trying to load a Image control from a image blob saved previously in a sql database.I have testd so many ways and i can't make it work. The image blob is saved as:</p>
  
  <pre><code>qry.SQL.Text := 'update tbl set pic = :blobVal where id = :idVal';
  qry.Parameters.ParamByName('blobVal').LoadFromFile('c:\sample.jpg', ftBlob);
  qry.Parameters.ParamByName('idVal').Value := 1;
  </code></pre>
  
  <p>any suggestion?</p>