I want to store images in a
database. I've found examples for moving images from a file to the database and back. What I
want to do, however, is move the image from a picture box to the database and back. How is this
You should use the method Picture.Image.Save(Stream, ImageFormat) to get the bytes from the picture. The stream can be a MemoryStream which buffer can be assigned to a SqlParameter and stored in the database, for example.
This was first published in April 2003