delphi如何把数据库的图片(二进制文件)导到本地文件夹

2024-12-28 12:36:38
推荐回答(1个)
回答1:

if opendialog1.Execute then
begin
ADOQuery1.Close;
ADOQuery1.SQL.Text:='select pic from text where ccc = ''' + trim(Edit1.Text) +'''';
ADOQuery1.open;
(ADOQuery1.Fields[0] as TBlobField).SaveToFile('d:\\photo\\aaa,jpg');