S
sharknt
Unregistered / Unconfirmed
GUEST, unregistred user!
我的源程序如下:
procedure TForm1.BitBtn1Click(Sender: TObject);
var
MS:TMemoryStream;
begin
MS:=TMemoryStream.create;
Image1.Picture.Bitmap.SaveToStream(MS);
MS.Position:=0;
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('insert into thblogin (name,picture) ');
Query1.SQL.add('valuesname,icture)');
Query1.paramByName('Picture').asBlob //就是这一句如何做到把MS变量值赋予Picture??
Query1.ParamByName('name').asstring:='thb';
Query1.execSql;
end;
请求各位老师帮忙,谢谢
procedure TForm1.BitBtn1Click(Sender: TObject);
var
MS:TMemoryStream;
begin
MS:=TMemoryStream.create;
Image1.Picture.Bitmap.SaveToStream(MS);
MS.Position:=0;
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('insert into thblogin (name,picture) ');
Query1.SQL.add('valuesname,icture)');
Query1.paramByName('Picture').asBlob //就是这一句如何做到把MS变量值赋予Picture??
Query1.ParamByName('name').asstring:='thb';
Query1.execSql;
end;
请求各位老师帮忙,谢谢