Y
youxi
Unregistered / Unconfirmed
GUEST, unregistred user!
var
MS_Read : TStream
begin
MS_Read:=AdoQry.CreateBlobStream(AdoQry.FieldByName('ID_Card_Image'),bmRead);
Image.Picture.Graphic.LoadFromStream(MS_Read);
end;
以上执行就提示内存错误
如果是
var
MS_Read : TStream
begin
MS_Read:=AdoQry.CreateBlobStream(AdoQry.FieldByName('ID_Card_Image'),bmRead);
Image.Picture.LoadFromFile(ExtractFilePath(Application.ExeName)+'ABC.Jpg')
Image.Picture.Graphic.LoadFromStream(MS_Read);
end;
就可以显示
请各位帮帮忙哈
MS_Read : TStream
begin
MS_Read:=AdoQry.CreateBlobStream(AdoQry.FieldByName('ID_Card_Image'),bmRead);
Image.Picture.Graphic.LoadFromStream(MS_Read);
end;
以上执行就提示内存错误
如果是
var
MS_Read : TStream
begin
MS_Read:=AdoQry.CreateBlobStream(AdoQry.FieldByName('ID_Card_Image'),bmRead);
Image.Picture.LoadFromFile(ExtractFilePath(Application.ExeName)+'ABC.Jpg')
Image.Picture.Graphic.LoadFromStream(MS_Read);
end;
就可以显示
请各位帮帮忙哈