문서 라이브러리에 있는 첨부파일을 다운로드 받고 싶을때.
이러한 메소드를 사용하면 스트림을 파일로 output 해주는데 public static void SaveMemoryStream(MemoryStream ms, string FileName) { FileStream outStream = File.OpenWrite(FileName); ms.WriteTo(outStream); //파일스트림으로 저장 하고 outStream.Flush(); //깨끗이 비운후 outStream.Close(); //끝냅니다. } protected override void CreateChildControls() { base.CreateChildControls(); SPWeb web = SPContext.Current.Site.OpenWeb(); //현재 사이트 안에 있는 모든 폴더 안에..
MOSS
2009. 5. 6. 14:21