C
chuah
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var
ms: TMemoryStream;
begin
ms := TMemoryStream.Create;
(ADOTable1.FieldByName('r_text') as TBlobField).SaveToStream(ms);
ms.Position := 0;
OleContainer1.LoadFromStream(ms);//这里有 invalid stream format错误
OleContainer1.DoVerb(1);
ms.Free;
end;
我再定义一个ts: tstream;
ts := tmemorystream.create;
ts.copyfrom(ms,ms.size);
OleContainer1.LoadFromStream(ts);//也不对
为什么,望指教
var
ms: TMemoryStream;
begin
ms := TMemoryStream.Create;
(ADOTable1.FieldByName('r_text') as TBlobField).SaveToStream(ms);
ms.Position := 0;
OleContainer1.LoadFromStream(ms);//这里有 invalid stream format错误
OleContainer1.DoVerb(1);
ms.Free;
end;
我再定义一个ts: tstream;
ts := tmemorystream.create;
ts.copyfrom(ms,ms.size);
OleContainer1.LoadFromStream(ts);//也不对
为什么,望指教