Any example to display jpegPhoto?

Michael Ströder michael at stroeder.com
Fri Jun 5 21:25:56 CEST 2009


Zhang Huangbin wrote:
> 
> Is there ny example to display jpegPhoto stored in LDAP as base64 format?

Not sure what you really want to display and where.

How about entry['jpegPhoto'][0].encode('base64') ?

Or are you talking about LDIF? Then use module ldif which automagically
base64-encodes NON-ASCII values.

Ciao, Michael.



More information about the python-ldap mailing list