I use this to get the data to put in database:
//Load a picture
Image image = Image.LoadFromFile("toto.jpg");
MemoryStream ms = new MemoryStream();
image .Save(ms, image .RawFormat);
// put the data of this picture in the category object
Byte[] buffer = new Byte[ms.Length - 1];
ms.Position = 0;
ms.Read(buffer, 0, buffer.Length);
ms.Close();// Now you can put the buffer data in your database
mercredi 04 juin 2008 | Predicate<T>
Cher Entreprenaute, vous pouvez trouver ici votre passeport pour l'economie numerique
Smart Code Generator
Serialcoder participe activement au projet opensource Smart Code Generator
smartcodegenerator