Outlook is using special values to recognize Contact Picture between other “normal” attachments.
Attachment number: MUST BE LINKED TO A TABLE COLUMN! Contains a number that uniquely identifies the attachment within its parent message.
(When importing only Contact pictures (no other attachments )Attachment number can be 0)
When importing from a file, you must provide Outlook with these values:
Attachment filename: must be empty
Attachment full path and filename: <file> Example: d:\foto\mypicture.jpg
Attachment long filename: ContactPicture.jpg (this is mandatory, Outlook always uses this fixed name in attachment table)
Attachment method:1
Attachment rendering position:-1
when importing directly from DB (blob column):
Attachment binary: the picture
Attachment filename: must be empty
Attachment long filename: ContactPicture.jpg
Attachment method:1
Attachment rendering position:-1