[英]Get Server URL of an Email Attachment using Exchange Web Services
I'm developing an app that deals with emails.我正在开发一个处理电子邮件的应用程序。 What I need is to get the URL of the location the attachment is stored on the exchange server.
我需要的是获取附件存储在交换服务器上的位置的 URL。 I can't download the attachment to my local machine so the attachment has to be accessed on the exchange server.
我无法将附件下载到本地计算机,因此必须在交换服务器上访问附件。
Is this possible?这可能吗?
I have looked online but can't seem to find anything.我在网上查过,但似乎找不到任何东西。
With EWS no there is no URL to download an Attachment directly you need to know the AttachmentId (generally you would get this by using the GetItem operation) then you can use the GetAttachment operation to get the contents of the attachment (which is a Base64 Stream).使用 EWS 没有直接下载附件的 URL,您需要知道 AttachmentId(通常您可以通过使用 GetItem 操作来获得它)然后您可以使用 GetAttachment 操作来获取附件的内容(这是一个 Base64 流)。 see https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getattachment-operation
请参阅https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/getattachment-operation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.