Storing Data

Program EasyDraw uses a document-oriented approach, storing each picture in a separate data file. Because the pictures are stored separately, this application doesn’t need to use a relational database.

If you needed to store additional information with the files and search on that information, you could store the pictures in a database. For example, you might give each picture a title and description. In that case, it might be worthwhile to store the title, description, and drawing information in a relational database.

EasyDraw could store drawing information in some sort of customized text or binary format. Visual Basic provides good tools for working with XML, so EasyDraw uses an XML format. XML also gives the files some degree ...

Get Visual Basic® .NET Database Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.