我有我的解决方案从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
}
}