private static void SavePictureBoxToDatabase(PictureBox myPictureBox)
{
MemoryStream ms = new MemoryStream();
myPictureBox.Image.Save(ms, ImageFormat.Jpeg);
ms.Seek(0, 0);
WriteToMyDatabase(ms.GetBuffer());
}
Obviously, you have to write the WriteToMyDatabase method since we don't know what database type you are dealing with...