Posted By:
Michael_Kloss
Posted On:
Thursday, July 25, 2002 08:25 AM
I found myself a way, but not the answer.
Some Attributes are predefined as binary, such as "photo".
Use this to add own Attributes:
env.put("java.naming.ldap.attributes.binary", "ATTRIBUTENAMES");
ATTRIBUTESNAMES (space splitted) as binary.
Now tis attributes are interpreted as binary and
you get a class byte[] and create a
Unicode String with
Object o=e.nextElement();
Byte[] b=(byte[])o;
String name=new String(b);
Fount this at:
http://java.sun.com/products/jndi/tutorial/ldap/misc/attrs.html
But why cut the JNDI my String and I get no exception ?