i develop ldap interface program can modify person attributes, when try modify value of photo attribute url string, have exception :
org.springframework.ldap.invalidattributevalueexception: [ldap: error code 21 - photo: no validator syntax 1.3.6.1.4.1.1466.115.121.1.23];
i think must send jpg photo file ldap don't know how it...
anyone has idea?
first, when encounter such error syntax oid, can submit oid repository. here give following information "values in syntax encoded if octet strings". means have encode jpg or png file in base64 , set attribute value (in fact array).
second, in understanding, there 3 attributes store photo-data jpegphoto
, photo
, thumbnailphoto
. me it's better store photos on file system or database , put in directory ans url or that.
you'll find here tutorial handle them java.
Comments
Post a Comment