Posts

Showing posts from December, 2012

Programmatically upload file to SharePoint Document Library

Method 1 : Stream fStream = upfile.PostedFile.InputStream;                             byte [] contents = new byte [fStream.Length];                             fStream.Read(contents, 0, ( int )fStream.Length);                             fStream.Close();                             string Filename = upfile.FileName;                    ...