From: Joshua L. <Jos...@ip...> - 2000-08-10 17:40:08
|
In that case could you point me to a web mailing list that actually has people that use LDAP and the web together -----Original Message----- From: Graham Barr [mailto:gb...@po...] Sent: Thursday, August 10, 2000 9:57 AM To: Joshua Lavalleur Cc: Perl-Ldap-Dev (E-mail) Subject: Re: Pictures From LDAP... On Thu, Aug 10, 2000 at 09:39:44AM -0700, Joshua Lavalleur wrote: > Okay I got how to get a picture from the directory server which turned out > to be easy... > > Now I need to figure out how to display it in a web page. I figure I have to > convert the binary stream somehow but I am not sure. > > I tried the following and got a lot of alien characters in my page. > > $content = $entry->get('photo'); > print "<img src=$content>"; the src= needs to be a url, which when that url is requested you get the image from the server and send it back with print $content (+ the appropriate headers) But this is not the place to ask web-based questions. Now you know how to get your content, you would be much better off asking this question to a web mailing list. Graham. |