Populating Profiles with photos 

You can use IBM Tivoli Directory Integrator assembly-line commands to populate the profiles database repository with photo files for your users.


Before you begin

To run the Tivoli Directory Integrator assembly-line commands that allow you to populate Profiles with photos, first ensure that the dbrepos_fields_prefixed property is set to true. Setting this property to true ensures that the SQL statements have the prefix of PROF_, for example, PROF_IMAGE rather than just image.


About this task

You can use the dump_photos_to_files and load_photos_from_file assembly-line commands to populate the profiles database with photo files. These commands are useful when you are moving the profiles database, allowing you to save the photos from the existing database on disk, repopulate the new database from the LDAP, and then load the photo files back into the new database.


Procedure

To populate a new profiles database with photos...

  1. Use the following command to read the existing photos from the profiles database and store them on disk:

      dump_photos_to_files

      The following table shows the properties that are used by this command, and their default values. These properties can be found in profiles_tdi.properties.

      Property Description
      dump_photos_directory The directory where the extracted files are stored. The default value is ./dump_photos.
      dump_photos_file The list of people whose photos were collected. The default value is collect_photos.in.
      load_photos_simple_file The list of people whose photos were collected. The default value is collect_photos.in. If you want to load only a subset of files from a location, you edit this file.


      Note: When dumping multiple photo files, there must be a period separator between each entry. If the separator is omitted, an error is thrown when you use the load command to import the files into the profiles database.

  2. To populate the new database with the photo files that you saved in the previous step, use the following command to read the files from disk and populate the profiles database with them:

      load_photos_from_files

      Notes:

      1. The table in step 1 shows the properties that relate to this command.

      2. Although in IBM Connections 2.0, the Profiles application can crop the photo uploaded by a user, the photo size limit in the underlying database is 15 KB. When Profiles is used with IBM Tivoli Access Manager enabled, the Tivoli Access Manager can only load files conforming to this size limit.

Example

Here is an example of an entry from the collect_photos.in file:

photo:file:/C:/Lotus_Connections_Install/TDISOL/TDI/./dump_photos/img1197046202619_9.dat 
uid:FAdams
.

The characters following uid: correspond to the PROF_UID in the profiles database.

When loading multiple photo files, there must be a period separator between each entry.

For example:

photo:file:/C:/Lotus_Connections_Install/TDISOL/TDI/./dump_photos/img1197046202619_9.dat 
uid:FAdams
.
photo:file:/C:/Lotus_Connections_Install/TDISOL/TDI/./dump_photos/img1197146402316_7.dat 
uid:TAmado
.


Parent topic

Add supplemental content to Profiles

Related concepts
Work with profile photos


Related tasks


Use the PhotoConnector


   

 

});