如何从Active Directory检索用户图像?

时间:2014-01-19 13:12:17

标签: c# asp.net active-directory

我有我的解决方案从Active Directory获取用户图像,我的代码很好,但我无法如何将ImageURL添加到来自Active Directory的图像

byte[] data = user.Properties["thumbnailPhoto"].Value as byte[];

if (data != null)
{
   using (MemoryStream s = new MemoryStream(data, 0, data.Length))
   {
       s.Position = 0;
       s.Write(data, 0, data.Length);

       //here I want to add the imageurl to Image controll
   }
}

0 个答案:

没有答案