Hi,
I am trying to read documents attached to an email and store them in database.
I am able to get the fileAttachment into a FileAttachment variable using the below code.
var attachmentRequest = graphClient.Users[User.ID].Messages[message.Id].Attachments[attachment.Id].Request().GetAsync();
var fileAttachment = attachmentRequest.Result;
I want to retrieve the contents of the attachment and store it, but ContentBytes is not available for use. Only ContentType is available.
thanks in advance.