Hi all!
I need retrive a jpg image from ldap, but when I cast the object to byte[] an CastExeption is throw. Please, could anyone help me?
Code:public Object mapFromAttributes(Attributes attributes) throws NamingException { Attribute ldapAtributo = attributes.get("photo"); if(ldapAtributo != null){ byte[] photo = (byte[])ldapAtributo.get(); } }
* Sorry for my poor English
Thanks


Reply With Quote

