I suspect that your attribute definition is incorrect can you share the schema definition of this attribute in which you are trying to store the binary value
On Tue, Sep 24, 2013 at 2:27 AM, Marcos Mendez <[email protected]> wrote: > Hi, > > I'm trying to save an xml (svg) file into a binary field in ADS. For some > reason I'm getting a class cast exception. > > javax.naming.NamingException: [LDAP: error code 80 - OTHER: failed for > MessageType : MODIFY_REQUEST > Message ID : 3 > Modify Request > Object : > 'uid=ztest,ou=testUsers,ou=users,dc=security,dc=testme,dc=com' > Modification[0] > Operation : add > Modification > binary_field: '0x3C 0x3F 0x78 0x6D 0x6C 0x20 0x76 0x65 0x72 0x73 0x69 0x6F > 0x6E 0x3D 0x22 0x31 ...' > org.apache.directory.api.ldap.model.message.ModifyRequestImpl@e9f9ec97 > ManageDsaITImpl Control > Type OID : '2.16.840.1.113730.3.4.2' > Criticality : 'false' > ' > : null: > java.lang.ClassCastException > ]; remaining name > 'uid=ztest,ou=testUsers,ou=users,dc=security,dc=test-me,dc=com' > > We've saved a png with no issues, so I don't understand what could be the > problem. Any ideas? > > Regards, > Marcos > > -- Kiran Ayyagari http://keydap.com
