Save Binary File To Database/Load Binary Data from Database to File

Category:
Database
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
These functions allow you to save binary files (e.g., .exes, word documents) to a database and to load them from a database back into a file. They use ADO, so a reference to Microsoft Active Data Objects is required. More detail regarding usage of the function is provided within the code's comments.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: