如何将字符串格式的原始字节数据转换为原始格式

时间:2019-12-23 15:34:18

标签: microsoft-graph

Microsoft Graph API发送原始数据字节作为以下API调用的响应

https://graph.microsoft.com/v1.0/users/xyz@xyz.com/messages/{messageId}/attachments/{attachmentID}/$value

如果在NodeJS中使用了上述API调用, 响应将是

{
    "headers":"Some headers",
    "body": "raw bytes of file"
}

在上面的响应中,主体包含字符串格式的RAW数据。 我如何将其从字符串转换为原始格式。 我需要将原始数据作为其原始形式发送到另一个API。

0 个答案:

没有答案