Application #24. Load Images from and Save Images to a Database

Sometimes you need to store images in a database instead of as physical files. This sample application, shown in Figure 3-16, will show you how to build a Windows Forms interface that allows you to do the following:

  • Browse for an image on your hard disk

  • Load the selected image into a PictureBox control for viewing

  • Save an image displayed in the PictureBox control to the database

  • Select an image from a ListBox control, and load it from the database

  • Delete an image

Figure 3-16. Application #24.

Building Upon...

Application #4: Try/Catch/Finally

Application #12: Use a DataSet and

Get 101 Microsoft® Visual Basic® .NET Applications now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.