title: Display thumbnailPhoto from Active Directory in PHP
body: <p>I've set up a system to display everyone's name, email address and phone number from Active Directory however I can't get the 'thumbailPhoto' to work.</p>
  
  <p>I have searched around on the internet but haven't been able to find if this is possible or at the very least what format is returned from Active Directory.</p>
  
  <p>I am currently using the adldap class so if it is possible to use this that would be ideal.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I can retrieve the data in the thumbnailPhoto attribute and if I dump them straight to the browser I get something like this:</p>
  
  <blockquote>
    <p>ÿØÿàJFIFððÿá
    PExifII*bh~†(2Ži‡¢XCanonCanon EOS 5D Mark
    IIIðð2013:05:19 17:35:31š‚à‚è"ˆ'ˆ 0230ð’
    ’ ’ (’0’8’ ’ ’@‘’11’’11 0100
    ÿÿ¢H¢P¢¤¤¤¤  2013:04:17
    11:44:522013:04:17 11:44:52H¹o@B¬  †
    è»dnäWµ˜:Ì¦®(¶’
    HHÿØÿàJFIFÿÛC    $.'
    ",#(7),01444'9=82&lt;.342ÿÛC 
    2!!22222222222222222222222222222222222222222222222222ÿÀ–d"ÿÄ
    ÿÄµ}!1AQa"q2‘¡#B±ÁRÑð$3br‚
    %&amp;'()<em>456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
    ÿÄµw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&amp;'()</em></p>
  </blockquote>
  
  <p>That isn't all of it but it is a very long string, I am presuming is some sort of binary string?</p>