title: C# wpf FTP error
body: <p>i have an error in the code -- the remoteserver  give an error not logged in --</p>
  
  <p>how can i login in ftp with username and password in this code !</p>
  
  <p>Thanks!</p>
  
  <pre><code>MySqlCommand cmd = new MySqlCommand("SELECT thumbnail FROM immobilie WHERE immobilieID = " + userVal, conn);
          MySqlDataReader rdr = cmd.ExecuteReader();
  
          string pics = "ftp://hostname/pics/";
  
          List&lt;String&gt; pic = new List&lt;String&gt;();
          while (rdr.Read())
          {
              pic.Add(rdr[0].ToString());
          }
          img_immo.Source = new BitmapImage(new Uri(pics + pic));
  </code></pre>
  
  <p>the new uri is correct in it is the right url only problem is the ftp login</p>