S
smth
Unregistered / Unconfirmed
GUEST, unregistred user!
使用delphi4+mssql7.0,不知为何下面程序会出错,
初来乍到,请不要嫌分数太少.
try
Stream1 := Table1.CreateBlobStream(Table1.FieldByName('pic'),bmRead);
JpgImg.LoadFromStream(stream1);
//上面这行程序会出access violation错误
//但stream1读出的size是对的.
label1.caption := inttostr(Stream1.size) ;
finally
Stream1.Free;
end;
初来乍到,请不要嫌分数太少.
try
Stream1 := Table1.CreateBlobStream(Table1.FieldByName('pic'),bmRead);
JpgImg.LoadFromStream(stream1);
//上面这行程序会出access violation错误
//但stream1读出的size是对的.
label1.caption := inttostr(Stream1.size) ;
finally
Stream1.Free;
end;