title: How to retrieve logged user image from AD?
body: <blockquote>
    <p>I had my code to retrieve logged user details , every thing is OK but
    i cannot retrieve the user image .</p>
  </blockquote>
  
  <pre><code>DirectorySearcher searcher = new DirectorySearcher();
          searcher.SearchScope = SearchScope.Subtree;
          searcher.Filter = string.Format(CultureInfo.InvariantCulture, "(sAMAccountName={0})", Environment.UserName);
          //SearchResult findUser = searcher.FindOne();
          foreach (SearchResult findUser in searcher.FindAll())
          {
              if (findUser != null)
              {
                  DirectoryEntry user = findUser.GetDirectoryEntry();
                  string userName = user.Properties["displayName"].Value.ToString();
                  string departement = user.Properties["Department"].Value.ToString();
                  string title = user.Properties["title"].Value.ToString();
                  string[] rt = new string[] { Login, userName, Email, Mobile };
  
                  Lbl_User.Text = userName;
                  Lbl_Administrative.Text = departement;
                  Lbl_Position.Text = title;
  
              }
          }
  </code></pre>