Skip to content

jpegPhoto decoding #27

@dk253

Description

@dk253

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions