开发者

Getting Error when retrieving an xlsx file from sharepoint using SPFile.openbinary();

开发者 https://www.devze.com 2023-03-03 17:49 出处:网络
I am using the below code to retrieve the files from sharepoint to byte[]. SPFile file = currentWeb.GetFile(item);

I am using the below code to retrieve the files from sharepoint to byte[].

SPFile file = currentWeb.GetFile(item);

byte[] dat开发者_StackOverflowa = (byte[])file.OpenBinary();

I am getting the below exception, when i am retrieving xlsx files from sharepoint:

Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

Can any one have an idea about it.........?

0

精彩评论

暂无评论...
验证码 换一张
取 消