From: Zhang H. <zhb...@gm...> - 2009-06-09 09:08:13
|
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/ |