1

I had my solution to get user image from Active Directory, I did my code well but I cannot how to add ImageURL to the image that come from 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
   }
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
skdeveloper
  • 107
  • 1
  • 1
  • 12

0 Answers0