How can I get the outlook contact's avatar image?

ε祈祈猫儿з 提交于 2019-12-05 14:24:05

You can use the attachments property of the ContactItem:

contact.Attachments["ContactPicture.jpg"]

If you want to save the file to disk, for example, you could do something like this:

contact.Attachments["ContactPicture.jpg"].SaveAsFile(@"{some_path}\ContactPicture.jpg")

Do you mean the picture that comes from Facebook or LinkedIn?

You cannot access it - MS did not provide any API to do that for legal purposes. Remember, that data comes from a third party service, and quite a few lawyers are involved in cases like this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!