用流可以解决问题:
var mstream:Tmemorystream;
begin
mstream:=Tmemorystream.create;
picture1.picture.bitmap.savetostream(mstream);
mstream.position:=0;//注意
adopicture.loadfromstream(mstream);//adopicture 是一个永久字段
mstream.free;
end;
从数据库读出图可以用相反的方法。
var mstream:Tmemorystream;
begin
mstream:=Tmemorystream.create;
picture1.picture.bitmap.savetostream(mstream);
mstream.position:=0;//注意
adopicture.loadfromstream(mstream);//adopicture 是一个永久字段
mstream.free;
end;
从数据库读出图可以用相反的方法。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货