-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

Keep in mind that the base-64 encoding must be in the code page of the
wire format for the protocol, that is UTF-8 for ldap v3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Key at http://www.hserus.net/pgp.txt

iD8DBQFC53oZRB4r9e3t77kRAqJtAKDVoqJdJupSVefwmUGo/H8Y7xMUywCgzAA/
JIpNXhGUp5rZBsdxzCH22oA=
=BHL9
-----END PGP SIGNATURE-----


-------------------------------------------------------
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_id=7477&alloc_id=16492&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