提问人:user22933548 提问时间:11/17/2023 最后编辑:Kromsteruser22933548 更新时间:11/18/2023 访问量:149
Delphi 存储过程 内存释放 [已关闭]
Delphi stored procedure Memory free [closed]
问:
每次我想将图像保存到文件时,我都无法创建 TBlobField 并在代码的这一部分中释放它。
If not (Mainform.spGetCardPicture.FieldByName('photo').IsNull)
then
begin
// I cannot creat BF here because show error pointer position.
BF := Mainform.spGetCardPicture.FieldByName('photo') as TBlobField;
BF.SaveToFile('c:\Export'+'\'+Mainform.ADOQuery_PictureTable.FieldByName(Field_name1).AsString+'.jpg');
// I cannot free BF here because show error pointer position.
Mainform.ADOQuery_PictureTable.Next;
end.
答: 暂无答案
上一个:记录类型、记忆使用情况和复制操作
评论
TDataSet.CreateBlobStream()
TBlobField