W
whether_bobo
Unregistered / Unconfirmed
GUEST, unregistred user!
////////////////////////////
Stream2 := TBlobStream.Create(Query1STREAMDATA, bmReadWrite);
try
...对stream2进行操作
query1.Post;
//在此读出就可以
TBlobField(query1.FieldByName('STREAMDATA')).SaveToFile('E:/aaa.txt');
finally
stream2.Free;
end;
//在此读出则出错 ‘Blob not open’?必须关闭query再打开就没问题了
TBlobField(query1.FieldByName('STREAMDATA')).SaveToFile('E:/aaa.txt');
//////////////////////////////
oracle 8i,delphi 6,BDE
数据库中若是字段定义为oracle的Blob字段类型,则不能对其进行CreateBlobStream操作
改成long raw就可以?
Stream2 := TBlobStream.Create(Query1STREAMDATA, bmReadWrite);
try
...对stream2进行操作
query1.Post;
//在此读出就可以
TBlobField(query1.FieldByName('STREAMDATA')).SaveToFile('E:/aaa.txt');
finally
stream2.Free;
end;
//在此读出则出错 ‘Blob not open’?必须关闭query再打开就没问题了
TBlobField(query1.FieldByName('STREAMDATA')).SaveToFile('E:/aaa.txt');
//////////////////////////////
oracle 8i,delphi 6,BDE
数据库中若是字段定义为oracle的Blob字段类型,则不能对其进行CreateBlobStream操作
改成long raw就可以?