惠
惠顾2008
Unregistered / Unconfirmed
GUEST, unregistred user!
我用下列程序,把程序存储到SQL SERVER数据库,但总出现Invalid class typecast提示。
FieldByName('FILENAME').AsString:=ExtractFileName(OpenPictureDialog1.FileName);
Stream:=TmemoryStream.Create();
Stream.LoadFromFile(OpenPictureDialog1.FileName);
Tblobfield(FieldByName('ZP')).LoadFromStream(Stream);
adotable1.Post;
FieldByName('FILENAME').AsString:=ExtractFileName(OpenPictureDialog1.FileName);
Stream:=TmemoryStream.Create();
Stream.LoadFromFile(OpenPictureDialog1.FileName);
Tblobfield(FieldByName('ZP')).LoadFromStream(Stream);
adotable1.Post;