The process of building custom solutions for SharePoint Server.
Hi @developer1-9584,
Please try to get the file stream like the code as attachment.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In SharePoint Remote Event Receiver, I'm try to get file stream from a ListItem:
List docs = clientContext.Web.Lists.GetById(listId);
ListItem item = docs.GetItemById(listItemId);
clientContext.Load(item);
clientContext.ExecuteQuery();
var file = item.File.OpenBinaryStream();
But it's returning null, is this limitation in Event Receiver ? I used to use this code in Console, it's working.
Please help to resolve it.
The process of building custom solutions for SharePoint Server.
Answer accepted by question author
Hi @developer1-9584,
Please try to get the file stream like the code as attachment.