Sometimes we need to read and write images to and from a stream or database. In this example we will build an application to show how to do this for both streams and databases. We will use Microsoft Access for the database and ADO.NET to read and write data to the database.
Database Programming and ADO.NET
If you are new to database programming and ADO.NET, you may want to look at the ADO.NET section of C# Corner (www.c-sharpcorner.com). Plenty of source code samples and tutorials are available for free. You also might want to check out my book for ADO.NET beginners: A Programmer’s Guide to ADO.NET in C# (published by APress).
First we need to create a database. We start by ...