title: How can I download a huge file via TIdHTTP?
body: <p>I use this code to download small files: </p>
  
  <pre><code>Var
   ms:TMemoryStream;
  begin
    ms:=TMemoryStream.Create;
    Idhttp1.get('http://mydomain.com/myfile.zip',ms);
    ms.SaveToFile('myfile.zip');
    ms.Free;
  end;
  </code></pre>
  
  <p>But file is saved in RAM before storing to disk, so it may be difficult to download files >1Gb, for example. Is there a way to download a file by its parts? Or do I need to use the WinInet? Thanks in advance!</p>