addFileAttachmentAsync error with files from azure blob storage

左心房为你撑大大i 提交于 2019-12-23 04:26:09

问题


I am developing an Outlook Add-in where I also want to attach some files to an Outlook Appointment.

I am able to upload files to the Azure blob/file storage successfully but if I want to attach these files via the addFileAttachmentAsync method I'll get a Download failed message in Outlook, the status of the result of the method is 'Succeeded' though.

The file is public available via the URL https://menatwork.blob.core.windows.net/outlookattachments/Icon80.png (tried both https and http)

If I use another URL (e.g. https://menatwork.azurewebsites.net/images/Icon80.png, or any other image you can find on the web) it works perfectly fine and the attachment is downloaded in Outlook.

The manifest file of the add-in contains the Azure domains but since it is working with other domains too (https://www.google.at/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png), I guess the error has to do with the blob storage http response?

Solution: Upgrade Outlook to the latest version (e.g. Outlook 2016 MSO (16.0.8431.2110)) fixed the problem.

来源:https://stackoverflow.com/questions/48149608/addfileattachmentasync-error-with-files-from-azure-blob-storage

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