You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2024. It is now read-only.
var imgBase64 = '/9kljnfkjsdnf.......==';
.......
var userPhoto = new Buffer(imgBase64);
also try
var userPhoto = new Buffer(imgBase64, 'base64');
also try
var userPhoto = new Buffer(imgBase64, 'binary');
.....
var entry = { uid: 'lalala', jpegPhoto: userPhoto };
ldap_client.add(dn, entry,function (err) {
...
});
all did not work :(
PS: What I need is to add a new entry on ldap with the jpegPhoto filled with a image-src
like <img ng-src="{{'data:image/png;base64,'+main.user.jpegPhoto}}"> from a LDAP jpegPhoto property
augcampos
changed the title
Is possible to write the binary field jpegPhoto in a entry?
Is possible to write the binary field jpegPhoto, adding a ldap entry?
Mar 17, 2016
I want to make a ldap add with a binary field how do I set it on the entry?
var entry = { uid: 'lalala', jpegPhoto: '{{ img content data in BASE64 }}'
ldap_client.add(dn, entry,function (err) {
...
});
this do not work :(
The text was updated successfully, but these errors were encountered: