[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
AW: how to add a .jpg
hi,
again:
www.openldap.org/doc/admin/dbtools.html#The%20LDIF%20text%20entry%20format
at the end of the document/chapter is an example for both possibilities.
(adding into the db via ldif/base64 or reading from file)
this:
jpegPhoto:: /9j/4AAQSkZJRgABAAAAAQABAAD/2wBDABALD
A4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQ
ERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVG
^ some free space..
or that:
jpegPhoto:< file:///path/to/file.jpeg
read the docs, folk..
regards,
daniel
> -----Ursprüngliche Nachricht-----
> Von: lqiu [mailto:lqiu@sunyrockland.edu]
> Gesendet: Donnerstag, 17. Mai 2001 23:09
> An: Walter Truitt
> Cc: Fabrice Cartron; openldap-software@openLDAP.org
> Betreff: Re: how to add a .jpg
>
>
> Is that anyway I could put the jpeg file in a directory e.g.
>
> /usr/users/ldap/photo
>
> and add the directory path in my ldap :
>
> dn: uid=student1, ou=student, o=rcc
> add: photopath
> photopath: /usr/users/ldap/photo/student1
>
>
> Walter Truitt wrote:
>
> > Fabrice Cartron wrote:
> >
> > > Bonjour,
> > >
> > > Can some one give me an example of syntax in order
> > > to add a jpg photo to a ldap user.
> > >
> > > Thank
> > > --
> > > Fabrice Cartron
> >
> > Since I had also had this problem before, I will go ahead
> and answer it
> > in the list rather than give you a pointer to another
> document. Well
> > actually I will do both, the document you will want to
> check is the rfc
> > (rfc2849.txt).
> >
> > For me to add my image, I put this in the ldif file...
> Actually I will
> > attach the file. The way I made the file was to start with this:
> >
> > dn: uid=wtruitt,dc=usa,dc=alcatel,dc=com
> > changetype: modify
> > add: jpegPhoto
> > jpegPhoto::
> >
> > I then mmencoded the image, and read it into the file after
> jpegPhoto.
> > I then inserted a space before each line of the base64
> encoded image.
> >
> > -walter
> >
> >
> --------------------------------------------------------------
> ----------
> > dn: uid=wtruitt,dc=usa,dc=alcatel,dc=com
> > changetype: modify
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