Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 1 of 1 total
Thread add jpeg via sql (Help)
Wed, Jul 26 2006 11:04 PMPermanent Link

Aaron Taylor
does anyone know how to add a jpeg via sql
i tried something like

with MyDBISAMQuery do
  begin
   SQL.Clear;
   SQL.Add('UPDATE table Set imagefield=:MyJPEGField');
   SQL.Add('WHERE Recordno=:num')
   ParamByName('num').asinteger:=5
   ParamByName('MyJPEGField').LoadFromFile('myimage.jpg');
   ExecSQL;
  end;

but got a 'not enough parameters' Error.
Image