public override void ItemAdded(SPItemEventProperties properties)
{
//SPFile file1 = properties.ListItem.File;
SPSite site = new SPSite("http://win-ofut34hh848:33738");
using (SPWeb web = site.OpenWeb())
{
SPFolder folder = web.GetFolder("http://win-ofut34hh848:33738/TestDocLib");
int a = properties.AfterUrl.IndexOf('/') + 1;
int b = properties.AfterUrl.Length - (properties.AfterUrl.IndexOf('/') + 1);
SPFile file = folder.Files[properties.AfterUrl.Substring(a,b) ];
//byte[] buffer = new byte[];
//file.SaveBinary(buffer);
Stream m = file.OpenBinaryStream();// new MemoryStream(buffer);
ServiceReference1.Service1Client sc = new ServiceReference1.Service1Client();
sc.GetData(m);
}
//}
}
Microsoft Hosted General Download from Microsoft Failing with 500.30
Asp.Net Core error - Microsoft Q&A
-
I was asked to post this question here as well...I'm following a Microsoft
article
(https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view...
6 months ago
No comments:
Post a Comment