/// <summary>
        /// Sets the contact's picture using the specified file.
        /// </summary>
        /// <param name="fileName">The name of the file that contains the picture.</param>
        public void SetContactPicture(string fileName)
        {
            EwsUtilities.ValidateMethodVersion(this.Service, ExchangeVersion.Exchange2010, "SetContactPicture");

            InternalRemoveContactPicture();
            FileAttachment fileAttachment = Attachments.AddFileAttachment(Path.GetFileName(fileName), fileName);

            fileAttachment.IsContactPhoto = true;
        }
        /// <summary>
        /// Sets the contact's picture using the specified stream.
        /// </summary>
        /// <param name="contentStream">The stream containing the picture.</param>
        public void SetContactPicture(Stream contentStream)
        {
            EwsUtilities.ValidateMethodVersion(this.Service, ExchangeVersion.Exchange2010, "SetContactPicture");

            InternalRemoveContactPicture();
            FileAttachment fileAttachment = Attachments.AddFileAttachment(ContactPictureName, contentStream);

            fileAttachment.IsContactPhoto = true;
        }