I'm still trying to add a jpeg image to a person in Open LDAP, using Novell's c# libraries:
Openldap: Add jpegPhoto to inetOrgPerson
There is a constructor for Novell.Directory.Ldap.LdapAttribute the with the following signature:
public LdapAttribute(string attrName, sbyte[] attrBytes)
So, I plan to use this one. But, how to convert a jpeg image from a MemoreyStream to sbyte[]?
MemoryStream.ToArray()
method returns byte[] and I don't know how to do it.