getting images from LDAP

From: Date: Mon, 24 Jun 2002 20:05:19 +0000
Subject: getting images from LDAP
Groups: php.dev 
Request: Send a blank email to php-dev+get-85549@lists.php.net to get a copy of this message
Hi all, I'm trying to create a display screen using php and the LDAP functions. I would like to display both the binary data (jpegphoto) as well as the other non-binary attributes like Name and Title on one page. I am able to pull and display the jpegphoto attribute using $data = ldap_get_values_len($connect_id, $entry, "jpegphoto"); header("Content-type: image/jpeg"); echo $data[0]; but, then I can't display regular ASCII info because if the "header" declaration. Only thing I can think of, is to somehow store $data out to a file data.jpg, then use this file as the <img src=data.jpg>. Although, I can't seem to find a way to do this either. Any ideas?

« previous php.dev (#85549) next »