摘要:
1.为列表项上传附件Stream fStream = FileUpload1.PostedFile.InputStream;byte[] contents = new byte[fStream.Length]; fStream.Read(contents, 0, (int)fStream.Length);fStream.Close();fStream.Dispose();FileInfo file = new FileInfo(FileUpload1.PostedFile.FileName);SPListItem item = list.GetItemById(itemId);//要给该记录附 阅读全文