title: Get directory, sub directory and files from server
body: <p>I'm building a .NET app, and I recently added a way to upload pictures on a server (with a WebService). My app retrieves the pictures as FileStreams, pass them to a WebService's method, which then copies "locally" (on the server) the pictures : </p>
  
  <pre><code>public void SendPhotos(Stream stream)
      {
          string folder = ConfigurationManager.AppSettings["defaultfolderpath"];
          if (!Directory.Exists(folder + "Trucs et Astuces"))
              Directory.CreateDirectory(folder + "Trucs et Astuces");
          if (!Directory.Exists(folder + "Trucs et Astuces\\" + refHD))
              Directory.CreateDirectory(folder + "Trucs et Astuces\\" + refHD);
  
          string filename = folder + @"Trucs et Astuces\" + refHD + Guid.NewGuid();
          FileStream f = File.Create(filename);
          stream.CopyTo(f);
          f.Close();
          stream.Close();
      }
  </code></pre>
  
  <p>I would like to do the same in the opposite way, retrieves the pictures from the server and copy them locally on my computer. Do you have any idea to do that ? </p>
  
  <p>Thanks</p>