title: Memo1.Lines.LoadFromStream from IOHandler.ReadStream
body: <p>I was trying to display the sent textfile to memo.lines with out saving it to a disk </p>
  
  <p>from server</p>
  
  <pre><code>  try
    Ms := TMemoryStream.Create;
    Ms.LoadFromFile('update.txt');
    Ms.Position := 0;
  
    AContext.Connection.IOHandler.LargeStream := True;
    AContext.Connection.IOHandler.Write(Ms, 0, True);
    finally
      Ms.Free;
    end;
  </code></pre>
  
  <p>to client...im not sure how to do this in client</p>
  
  <pre><code>  try
     Ms := TMemoryStream.Create;
     Ms.Position := 0;
  
     IdTCPClient1.IOHandler.LargeStream := True;
     IdTCPClient1.Connection.IOHandler.ReadStream(Ms, -1,false);
  
   finally
     Memo1.Lines.LoadFromStream(Ms);
     Ms.Free;
   end;
  </code></pre>
  
  <p>can anyone help me on how to make this work if its possible ? </p>