Hi,

I have setup an OpenLDAP server and a Plone instance with plone.app.ldap
which queries it. It works flawlessly, I can get the full name, surname,
other custom defined schemas.

I just have an issue with the jpegPhoto. I wire it in the schemas just as
any other property and it seems to work since a
acl_users.getUserById(uid).getProperty('jpegPhoto') returns some binary
data, but if I setup a view to return just this binary data it doesn't
display the photo.

The weird thing is that collective.portlet.contact just works fine. I
install and configure it and then I just add a portlet and it shows the
photo.

I copied the c.p.contact view to use the same request.response.setHeader and
everything but still doesn't work.

I noticed that there's always some overhead on the image size, a image
weights 44kb with c.p.contact image whereas on p.a.ldap weights 66kb (or
22kb vs 33kb).

Any idea about it?

I been struggling with it for more than a week and I don't get it at all :S

Cheers,

-- 

*Gil Forcada**
*C/Llacuna, 166 2n.2a (Edifici Llacuna)
telf: 93.188.88.12 - 619.65.34.92
fax: 93.320.93.97
(08018) BARCELONA
[email protected]
www.usecm.com
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to