Y
yukaikai
Unregistered / Unconfirmed
GUEST, unregistred user!
显示数据库中的图像字段,image2是Timage控件:
adotable1.First;
adotable1.MoveBy(4);
blobstream:=TMemoryStream.Create;
TBlobField(Adotable1.FieldByName('photo')).SaveToStream(blobstream);
image2.Picture.Bitmap.LoadFromStream(blobstream);
没有错误提示,但是,不能显示图像。
adotable1.First;
adotable1.MoveBy(4);
blobstream:=TMemoryStream.Create;
TBlobField(Adotable1.FieldByName('photo')).SaveToStream(blobstream);
image2.Picture.Bitmap.LoadFromStream(blobstream);
没有错误提示,但是,不能显示图像。