(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) Trash : (Answer) How do i turn a jpeg into ldif format?
A jpeg image must be entered in a LDIF as a Base 64 encoded string.

OpenLDAP includes a tool ldif(1) for converting data into a form suitable for inclusion in an LDIF file.

   ldif -b jpegPhoto < image.jpg

will generate:

   jpegPhoto:: Base64encodedImage

You can than insert this output into your LDIF file.

[Append to This Answer]
gmatz@matz.org, Kurt@OpenLDAP.org
This document is: http://www.openldap.org/faq/index.cgi?file=165
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org