X
xknife
Unregistered / Unconfirmed
GUEST, unregistred user!
以前在D6下还运行正常,这次结果就出错了! :(
数据库环境: sql2000
将一副图形以jpg的格式存入数据库中了,我想显示出来,只能用image了,
DBimage似乎不支持JPG,当然了,已经use jpg了!
var
FStream:TStream;
FJpeg:TJPEGImage;
//如果相片标志为'有',则显示相片
if Dm_da.Q_cldaBDEDesigner49.Value='有' then
begin
FJpeg:=TJPEGImage.Create;
FStream:=TBlobStream.Create(TBlobField(Dm_da.T_pic.FieldByName('相片')),bmRead);
try
FJpeg.LoadFromStream(FStream);
image1.Picture.Assign(FJpeg);
finally
FStream.Free;
FJpeg.Free;
end
出错代码是:
[Error] F_PIC.PAS(73): Undeclared identifier: 'TBlobStream'
[Error] F_PIC.PAS(73): Missing operator or semicolon
[Error] F_PIC.PAS(73): Too many actual parameters
数据库环境: sql2000
将一副图形以jpg的格式存入数据库中了,我想显示出来,只能用image了,
DBimage似乎不支持JPG,当然了,已经use jpg了!
var
FStream:TStream;
FJpeg:TJPEGImage;
//如果相片标志为'有',则显示相片
if Dm_da.Q_cldaBDEDesigner49.Value='有' then
begin
FJpeg:=TJPEGImage.Create;
FStream:=TBlobStream.Create(TBlobField(Dm_da.T_pic.FieldByName('相片')),bmRead);
try
FJpeg.LoadFromStream(FStream);
image1.Picture.Assign(FJpeg);
finally
FStream.Free;
FJpeg.Free;
end
出错代码是:
[Error] F_PIC.PAS(73): Undeclared identifier: 'TBlobStream'
[Error] F_PIC.PAS(73): Missing operator or semicolon
[Error] F_PIC.PAS(73): Too many actual parameters