title: Save a file on a ftp server in a subdirectory
body: <p>I have code that allows me to access a server to do ftp transactions. I have tested the connection and it works. the problem is saving files. to help paint a picture this is how the address are set up. </p>
  
  <p><strong>ftp server:</strong> ftp.MyMainDomain.com</p>
  
  <p><strong>path login ftp points to:</strong>  www.another_website_Under_myDomain.com/gallery/images</p>
  
  <p>when I tested connection, ftp server tacks me directly to images folder and I have even read the subdirectories out (<code>ie ..images/subdirectory1, ..images/subdirectory2</code>). </p>
  
  <p>What I need now it to be able to save files into each of the folders. I thought that all I had to do was add <code>subdir</code> that I wanted to access to the end of the <code>ftp_server uri</code> but that doesn't work. What should I do?</p>
  
  <pre><code>Uri ftpUri = new Uri((Ftp_Server_Address + "/" + SubDirectory+ "/"), UriKind.Absolute);
  if (ftpUri.Scheme == Uri.UriSchemeFtp)// check ftp address,
  {
      DirRequest = (FtpWebRequest)FtpWebRequest.Create(ftpUri);
  
      DirRequest.Method = ReqMethod;
      DirRequest.Credentials = new NetworkCredential(FtpUserName, FtpPassword);
      DirRequest.UsePassive = true;
      DirRequest.UseBinary = true;
      DirRequest.KeepAlive = false;
      //change picture to stream
      Stream PicAsStream =  Pic.Bitmap_to_Stream(Pic.BitmapImage_to_Bitmap(Pic.Photo));
      //send ftp with picture
      Stream ftpReqStream = DirRequest.GetRequestStream();
      ftpReqStream = PicAsStream;
      ftpReqStream.Close();
      SendFtpRequest(ReqMethod);
  }
  </code></pre>