On 7/27/05, Suresh Ramasubramanian <[EMAIL PROTECTED]> wrote:
> Thaths wrote:
> > and send an image/jpeg down to the browser. What format is the
> > jpegPhoto stored in the LDAP search result? I tried
> > imagecreatefromstring($data_from_ldap_search) but it doesn't seem to
> > work ("imagecreatefromstring(): Passed data is not in 'WBMP' format
> > in"). Even tried base64_decoding it.
> jpegPhoto is encoded using base-64 all right and the textual attribute
> values can also be specified in base-64

Apparently that was not the problem. I was reading the jpegPhoto as
textual data instead of binary. Once I figured this out, all I had to
was create a jpg object, read the jpegPhoto attribute data as binary
and spew it into the object and et voila!

Thaths
-- 
   "Good things don't end in -eum; they end in -mania or -teria"
                                   -- Homer J. Simpson


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to