S
snowworm
Unregistered / Unconfirmed
GUEST, unregistred user!
MS: TMemoryStream;
image1.Picture.LoadFromFile(openpicturedialog1.FileName);
MS:=TMemoryStream.create;
Image1.Picture.Graphic.SaveToStream(MS);
MS.Position:=0;
Table1.EDIT;
TBlobField(Table1.FieldbyName('PHOTO')).LoadFromStream(MS);
MS.Position:=0;
MS.free;
Table1.Post;
运行到post就出错了,换了几种流存储方法,还是同样的错误:
ORA-22990: LOB locators cannot span transactions
Cause: A LOB locator selected in one transaction cannot be used in a differe
nt transaction.
Action: Re-select the LOB locator and retry the operation.
这是我在oracle主页找到的关于该错误的解析,但在程序中不知道怎么解决,还请赐教!
image1.Picture.LoadFromFile(openpicturedialog1.FileName);
MS:=TMemoryStream.create;
Image1.Picture.Graphic.SaveToStream(MS);
MS.Position:=0;
Table1.EDIT;
TBlobField(Table1.FieldbyName('PHOTO')).LoadFromStream(MS);
MS.Position:=0;
MS.free;
Table1.Post;
运行到post就出错了,换了几种流存储方法,还是同样的错误:
ORA-22990: LOB locators cannot span transactions
Cause: A LOB locator selected in one transaction cannot be used in a differe
nt transaction.
Action: Re-select the LOB locator and retry the operation.
这是我在oracle主页找到的关于该错误的解析,但在程序中不知道怎么解决,还请赐教!