node-ldapauth icon indicating copy to clipboard operation
node-ldapauth copied to clipboard

jpegPhoto decoding

Open dk253 opened this issue 8 years ago • 1 comments

Howdy! I finally got this working with the base openldap install. Learned a lot about ldap searching. Thanks for the lib!!

Now when the user object shows up I am trying to save the jpegPhoto to a file for use as the profile pic. But I cannot figure out the format

I have tried (among many other things): fs.writeFileSync(jpgPath, ldapUser.jpegPhoto);

And var jpg = new Buffer(ldapUser.jpegPhoto, 'base64'); fs.writeFileSync(jpgPath, jpg);

Any ideas?

Thanks!

dk253 avatar Apr 18 '17 15:04 dk253

Same problem!!!

mattiaa95 avatar May 09 '18 14:05 mattiaa95