title: system.drawing.image to spfile
body: <p>I have a image that I need to save in a Sharepoint site under shared documents</p>
  
  <p>For various reasons the image has to be in a system.drawing.image and be saved in the shared documents within the sharepoint site. it does not have to be saved in a local hard disk.</p>
  
  <p>Have you got any solution?</p>
  
  <p>so far I am gtrying</p>
  
  <pre><code> MemoryStream ms = new MemoryStream();
   imageIn.Save(ms,System.Drawing.Imaging.ImageFormat.Gif);
   byte[] imagebyte = ms.ToArray(); 
  </code></pre>
  
  <p>then Savebinary function of the streamreader  but no joy</p>