I have a small question: I want to convert a stream to a Variant. Under
Win32 i have written a small function for this:
class function TVarFunc.StreamToVariant(const AStream: TStream): Variant;
begin
Result := VarArrayCreate([0, AStream.Size - 1], varByte);
AStream.Position := 0;
AStream.ReadBuffer(TVarData(Result).VArray^.Data^,
TVarData(Result).VArray^.Bounds[0].ElementCount);
end;
How can I manage this under .net?
--
Roman
Distef
"Roman Kaßebaum" <roman.kass...@kdv-dt.de> wrote in message
news:42e74349$1...@newsgroups.borland.com...