Azure Microsoft图形上载图像
我正试图向Azure Microsoft图形上载图像,azure,microsoft-graph-api,put,Azure,Microsoft Graph Api,Put,我正试图向https://graph.microsoft.com/v1.0/me/photo/$value 使用Microsoft图形浏览器 但我得到一个内部错误500。我是做错了什么,还是Graph API有问题 { "error": { "code": "ErrorInternalServerError", "message": "An internal server error occurred. The operation failed.,
https://graph.microsoft.com/v1.0/me/photo/$value
使用Microsoft图形浏览器
但我得到一个内部错误500。我是做错了什么,还是Graph API有问题
{
"error": {
"code": "ErrorInternalServerError",
"message": "An internal server error occurred. The operation failed., The file you chose isn't an image. Please choose a different file.",
"innerError": {
"request-id": "60c801ff-7d83-47a1-9d38-c01a4769ec1b",
"date": "2018-08-08T09:28:18"
}
}
在当前状态下,无法使用Microsoft Graph Explorer上载二进制文件。使用邮递员上传二进制文件。以“User.ReadWrite”作为权限和内容类型发出PUT请求:Image/Jpeg