Hast Du schon mal ein einfaches Unboxing probiert ? Ich stelle mir da folgendes vor:
Delphi-Quellcode:
uses System.IO;
type bytearray = Array of Byte;
procedure test(o: TObject);
var
a: ByteArray;
s: MemoryStream;
begin
A := ByteArray(o);
s := MemoryStream.Create(A);
end;
Hab's aber noch nicht getestet
- probier's einfach mal aus.
Hth,
Khananka