From: Joshua L. <Jos...@ip...> - 2000-08-10 18:25:11
|
Excuse me for being a really naive beginer when it come to cgi but I don't quite know how to do that exactly. I tried to do what you suggested but I had no luck what-so-ever. Could you point me in the direction of an example piece of code?... -----Original Message----- From: Jonathan Leto [mailto:jon...@le...] Sent: Thursday, August 10, 2000 10:57 AM To: Joshua Lavalleur Subject: Re: Pictures From LDAP... make a cgi script that prints out the binary data, with a x-image/jpeg or whatever content type and do this: <img src=/cgi-bin/printpicfromldap.cgi?showpic=blah> Joshua Lavalleur (Jos...@ip...) was saying: > 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. > -- jon...@le... "With pain comes clarity." |