EWS托管API和内嵌图像 [英] EWS Managed API and inline images

查看:61
本文介绍了EWS托管API和内嵌图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们是否可以通过 EWS托管API检索内嵌图像?如果不是最好处理这个内容,那么内联的电子邮件看起来就像是在我们的客户端呈现它们时链接图像已损坏了。

我甚至愿意将它们附加到电子邮件中一个实际的附件,这样用户就可以使用它们。如果无法检索这些图像,是否计划将此功能添加到 EWS托管API 中?<
span>

Is it possible for us to retrieve inline images via the EWS Managed API?  If not what is the best to handle this the emails with inline all look like they have broken link images when they are rendered in our client.

I would even be open to attaching them to the email message as an actual attachment just so the user would be able to them.  If it is not possible retrieve these images is there a plan to add this feature to the EWS Managed API?


推荐答案

我们是否可以通过 EWS托管API检索内嵌图像?如果不是最好处理这个内容,那么内联的电子邮件看起来就像是在我们的客户端呈现它们时链接图像已损坏了。

我甚至愿意将它们附加到电子邮件中一个实际的附件,这样用户就可以使用它们。如果无法检索这些图像,是否有计划将此功能添加到 EWS托管API


Hi RPDev,
是,您可以使用内嵌映像与EWS托管API。要插入内嵌图像,请使用:


Hi RPDev,

yes you can use inline images with EWS Managed API. To insert an inline image, use:


FileAttachment attachment =msg.Attachments.AddFileAttachment(a.Filename, a.Data);
attachment.IsInline = true;
attachment.ContentType = "GIF/Image";




如果您检索带有内联图片的邮件,只需检查"IsInline" ;附件中的财产。

这是你要找的吗?



if you retrieve a mail with inline images, just check for the "IsInline" property in the attachments.

Was this what you're looking for?


这篇关于EWS托管API和内嵌图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆