Re: Any example to display jpegPhoto?

2009-06-05 Thread Zhang Huangbin
Michael Ströder wrote: > 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

Re: Any example to display jpegPhoto?

2009-06-05 Thread Michael Ströder
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-A

Any example to display jpegPhoto?

2009-06-05 Thread Zhang Huangbin
Hi, list. Is there ny example to display jpegPhoto stored in LDAP as base64 format? I only found example to add jpegPhoto in python-ldap-2.3.8/Demo/simple.py. Thanks very much. :) -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL, CentOS, Debian, Ubuntu: + Home