Results 1 to 6 of 6

Thread: Active Directory: Storing Images? Best approach

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    Active Directory: Storing Images? Best approach

    Basically I need to store a single photo in active directory (picture ID of the employee).

    Is there anyway I can actually store this picture directly into active directory?

    I figure my options are:
    1# Find a way to store in AD
    2# Upload it to the server, and stick the location of it in some field in AD (like webpages?)
    3# Use a database (I got old code that does exactly this, but we are looking for a pure AD solution)

  2. #2
    Lively Member
    Join Date
    Apr 2010
    Posts
    105

    Re: Active Directory: Storing Images? Best approach

    AD objects, e.g. users, have useful extendedAttributes that you could store a location to the file on the file system with?
    I wrote a book Visual Studio 2008 Programming
    Amazon.com / Visual Studio 2008 Programming / By Jamie Plenderleith & Steve Bunn

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    Re: Active Directory: Storing Images? Best approach

    Extended attributes is option two right now (ewe arent usiung the webpage field).

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Active Directory: Storing Images? Best approach

    Isn't there a jpegPhoto attribute? What server OS are you using? I think this was new in Windows Server 2003.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    Re: Active Directory: Storing Images? Best approach

    I cannot find that attribute in AD Users and Computers. Is it a field that does not have a GUI?

  6. #6
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Active Directory: Storing Images? Best approach

    I've never heard of that jpegPhoto attribute but if it exists you will not find it in AD Users & Computers - you could use ADSI Edit (built in with Server 2008, free download for Server 2003) to view all of the attributes of a user object.

    EDIT: in fact a quick google of that attribute returns the following VB.NET tutorial on how to use it http://blogs.technet.com/btrst4/arch...30/222629.aspx
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width