Author: Tomas Rutkauskas How to copy data from a TMemoryStream to a string without using an array of char as buffer Answer: 1 var 2 S: string; 3 begin 4 SetLength(S, MemStream.Size); 5 MemStream.read(S[1], MemStream.Size); 6 end;