Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpegPhoto decoding #27

Open
dk253 opened this issue Apr 18, 2017 · 1 comment
Open

jpegPhoto decoding #27

dk253 opened this issue Apr 18, 2017 · 1 comment

Comments

@dk253
Copy link

dk253 commented Apr 18, 2017

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!

@mattiaa95
Copy link

Same problem!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants