Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Can i save a file to ldap server?

Thread view: 
sk - 14 Mar 2007 22:56 GMT
Is it possible to save a file in the ldap server?

I think in ladap we can search through a simple metadata but not files.

Shin
Nigel Wade - 15 Mar 2007 11:33 GMT
> Is it possible to save a file in the ldap server?

Do you mean to the LDAP server's filesystem, or within the LDAP servers
directory (directory in this context meaning the LDAP servers data store, not
the directory in which it is located in the underlying filesystem - terminology
is confusing when the same word is used for entirely different things)? You
could save the file as an object in the LDAP directory itself, if it isn't too
large.

> I think in ladap we can search through a simple metadata but not files.

The LDAP server allows you to search and add information into its own directory.
But there is no access to the LDAP server's underlying filesystem.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Brandon McCombs - 17 Mar 2007 18:28 GMT
> Is it possible to save a file in the ldap server?
>
> I think in ladap we can search through a simple metadata but not files.
>
> Shin

Assuming you  mean the LDAP server's underlying database, then yes, you
can can save files in it. That's how you can save jpg files in the
jpegPhoto attribute. Binary data has to be stored in binary attributes,
which in Java you would use a byte[] data type for handling that type of
data. I've never attempted to store plaintext files in an LDAP database
and that isn't what they are supposed to be used for anyway. If you have
textual data then put it in attributes because the plaintext files can't
be searched while they are in the LDAP database. They would have to be
retrieved one at a time and then searched by the client; not very
efficient to say the least.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.