You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var attachment = await graphClient.Users[userId].MailFolders[mailFolderId].Messages[messageId].Attachments[attachmentId]
.GetAsync() as FileAttachment;
var bytes = attachment.ContentBytes;
at this point bytes is a "base-64 encoded contents of a file" - now I want to write this file to disk so it can be opened as normal, what is the preferred method for doing so?
Perhaps there is a helper method somewhere in the SDK I can use?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
e.g:
at this point bytes is a "base-64 encoded contents of a file" - now I want to write this file to disk so it can be opened as normal, what is the preferred method for doing so?
Perhaps there is a helper method somewhere in the SDK I can use?
Beta Was this translation helpful? Give feedback.
All reactions