Quote Originally Posted by Brainer
Indy10 is not that hard in use. The things gets complicated when it comes to sending data. Indy10 has a shitty data type called TBytes, which is an array consists of bytes. I've figured out how to convert records and variables into TBytes, but no idea how to do it with TStream :roll: Unfortunately, you can't send any other data than TBytes with Indy10. :cry:

Therefore I prefer to switch back to Indy9 or to use ICS.
Code:
var
  bytes: TBytes;
begin
  SetLength(bytes, stream.Length);
  Stream.Read(bytes, stream.Length);
end;
It really isn't a complex thing. If you want to know these things try working with streams and archivers. You'll learn fast.