Upload an Image to your SharePoint Site

24 Apr

It’s very easy to add a file/image to your SharePoint site via the Object Model.   System.IO.MemoryStream str = <span class="kwrd">new</span> System.IO.MemoryStream();<br /> SPSite site = <span class="kwrd">new</span> SPSite(Page.Request.Url.ToString());<br /> SPWeb web = site.OpenWeb(); <br /><br /> Bitmap.FromFile(<span class="str">"Source URL"</span>).Save(str,Imaging.ImageFormat.Gif);<br … Read More »