I have a image that I need to save in a Sharepoint site under shared documents
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.
Have you got any solution?
so far I am gtrying
MemoryStream ms = new MemoryStream();
imageIn.Save(ms,System.Drawing.Imaging.ImageFormat.Gif);
byte[] imagebyte = ms.ToArray();
then Savebinary function of the streamreader but no joy
Starter for ten, you will need to change some of the hard coded settings in here
or, if you are trying to just save the file directly to a non-image list you can treat sharepoint as a giant file share and just open a filestream and write the byte array there.