De Esta Manera Es Mas Efectiva
sql2.SQL.Clear;
sql2.SQL.Add('insert into emple(coemp,idemp,foto)');
sql2.SQL.Add('values(:v_coemp,:v_idemp,:V_FOTO)');
sql2.ParamByName('V_COEMP').Value:=strtoint(V_COEMP.Text);
sql2.ParamByName('V_IDEMP').Value:=V_IDEMP.Text;
sql2.ParamByName('V_FOTO').LoadFromFile('C:\IMAGEN\FOTO.BMP',ftBlob);
sql2.ExecSQL;
|