[midPoint] import jpegPhoto from a database table
    Ch. Olbricht 
    colbricht at hs-harz.de
       
    Wed Apr 23 13:38:07 CEST 2025
    
    
  
Hi Community,
does anyone knows, how JPEG import to attribute "jpegPhoto" from a 
database table works?
Having a Postgresql Table like:
     CREATE TABLE test(
         user TEXT,
         image BYTEA)
And a resource with in- and outbound mappings, including for the 
"jpegPhoto" attribute:
     ...
     <attribute>
         <ref>ri:image</ref>
         <outbound>
             <name>jpegPhoto_out</name>
             <strength>strong</strength>
             <source>
                 <path>jpegPhoto</path>
             </source>
         </outbound>
         <inbound>
             <name>jpegPhoto_in</name>
             <strength>strong</strength>
             <target>
                 <path>jpegPhoto</path>
             </target>
         </inbound>
     </attribute>
OK, select a user, upload a JPG-file and save the user works and 
outbound mapping saves the user- and image-data in table test.
But deleting the jpegPhoto attribute from this user and doing then a 
import task with the same table-data from the outbound mapping ... 
jpegPhoto is still empty!
Why?
Kind Regards
Christian
    
    
More information about the midPoint
mailing list