Microsoft graph api msgraph api中的附件大小错误

Microsoft graph api msgraph api中的附件大小错误,microsoft-graph-api,microsoft-graph-mail,Microsoft Graph Api,Microsoft Graph Mail,FileAttachment的属性大小大于二进制文件的实际大小 { “@odata.type”:“#microsoft.graph.fileAttachment”, “@odata.mediaContentType”:“应用程序/八位字节流”, “id”:“, “lastModifiedDateTime”:“2020-10-26T09:57:36Z”, “名称”:“test.bin”, “contentType”:“应用程序/八位字节流”, “尺寸”:245, “isInline”:错误, “c

FileAttachment的属性大小大于二进制文件的实际大小

{
“@odata.type”:“#microsoft.graph.fileAttachment”,
“@odata.mediaContentType”:“应用程序/八位字节流”,
“id”:“,
“lastModifiedDateTime”:“2020-10-26T09:57:36Z”,
“名称”:“test.bin”,
“contentType”:“应用程序/八位字节流”,
“尺寸”:245,
“isInline”:错误,
“contentId”:null,
“contentLocation”:空,
“contentBytes”:“aGVsbG8gd29ybGQ=”
}
下面是一段在json数据上方创建的java代码:

IGraphServiceClient-graphClient=GraphServiceClient.builder().authenticationProvider(provider.buildClient();
FileAttachment=新的FileAttachment();
attachment.oDataType=“#microsoft.graph.fileAttachment”;
附件.name=“test.bin”;
attachment.contentBytes=“hello world”.getBytes();
附件att=graphClient.users().byId(userId).messages().byId(mailId).attachments().buildRequest().post(附件);
系统输出打印项次(附件尺寸);

图表中的附件大小应仅为PidTagAttachSize属性。返回的大小基本上由附件对象中所有附件属性的大小(不仅仅是基础附件大小)组成。因此,它将始终大于实际附件大小。还有另外一种描述

此属性可用于在通过调制解调器执行远程传输之前检查附件的大致大小,以及在将附件保存到磁盘时显示进度指示器。它对于附加的OLE对象特别有用

考虑到他们谈论调制解调器,它有点过时了