如何将数据库中的图片记录分页显示出来?
在数据库中存放着jpg图片,我要将图片分几页通过image组件上显示出来,其中
Qry.Recordset.PageSize := 11;
。。。
for i := 0 to Qry.Recordset.PageSize - 1 do begin
image1.Picture.Assign(Qry.RecordSet.Fields[3].value);
....
Qry.Next;
if Qry.RecordSet.EOF then exit;
end;
[Error] Cp_Xs.pas(133): Incompatible types: 'TPersistent' and 'OleVariant'
如何转换这个类型