You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

EWS 2010 CreateAttachment API调用异常求助(PHP 5.5 + curl 7.49.1)

在EWS 2010中调用CreateAttachment API遇到问题

我最近在EWS 2010环境下调用CreateAttachment API时碰到了问题,使用的技术栈是PHP 5.5搭配curl 7.49.1。下面是我用来测试问题的脚本片段:

$ewswrapper = new EWSWrapper($host, $user, $pass);
try {
    // 参考示例:
    // http://jamesarmes.com/php-ews/doc/0.1/examples/contact-set-update-photo.html
    // https://github.com/jamesiarmes/php-ews/blob/master/examples/contact/set-photo.php
    $picture = base64_decode(" ... 有效base64图片内容 ... ");
    $...
} catch (Exception $e) {
    // 异常处理逻辑
}

我尝试参考相关示例代码来实现图片附件的创建,但目前调用API始终无法成功,希望能得到大家的帮助排查问题。

内容的提问来源于stack exchange,提问作者Leonard Schütz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:37:51