Any example to display jpegPhoto?
Zhang Huangbin
zhbmaillistonly at gmail.com
Tue Jun 9 11:10:26 CEST 2009
Zhang Huangbin wrote:
>> Not sure what you really want to display and where.
>>
>> How about entry['jpegPhoto'][0].encode('base64') ?
Still confused what data type it stored in LDAP.
Already base64 encoded?
Display entry['jpegPhoto'][0] directly, got error msg:
----
'ascii' codec can't decode byte 0x89 in position 0: ordinal not in
range(128)
----
How can i display it if i use 'content-type: image/jpeg' header?
--
Best regards.
Zhang Huangbin
- Open Source Mail Server Solution for RHEL, CentOS,
Debian, Ubuntu:
+ Homepage: http://code.google.com/p/iredmail/
+ Forum: http://www.iredmail.org/forum/
More information about the python-ldap
mailing list