var
ConStream: TMemoryStream;
A: TADOConnection;
P: Pointer;
C: Olevariant;
begin
ConStream:= TMemoryStream.Create ;
try
conStream.WriteComponent(A);
p := VarArrayLock(C);
conStream.Position := 0;
//start from begin
ning of stream
conStream.Read(p^, conStream.Size);
finally
VarArrayUnlock(C);
FileStream.Free;
end;
end;
没调试过,太概就这样吧!