2.2.1.8.3 Contact Photo Attachment
The contact photo attachment is a picture attached to the Contact object. The Attachment object MUST have the PidTagAttachmentContactPhoto property (section 2.2.1.8.2) set to nonzero (TRUE). For more details about Attachment objects, see [MS-OXCMSG] section 2.2.2. Additionally, the following properties MUST be set on the Attachment object, as specified in [MS-OXCMSG]:
The value of the PidTagAttachDataBinary property ([MS-OXCMSG] section 2.2.2.7), which is the contents of the attachment, SHOULD be in JPEG format. Support for other formats is as determined by the implementer.
The PidTagAttachExtension property ([MS-OXPROPS] section 2.592) SHOULD be set to ".jpg".
The PidTagDisplayName (section 2.2.1.1.8) and PidTagAttachFilename ([MS-OXPROPS] section 2.593) properties SHOULD be set to "ContactPicture.jpg".