How to import .gif files into our database for printing by using .

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We are trying to import .gif files into our Access database so that we can
print individual pages that has an individual's photo with information taken
from the database. Currently, we put each photo in one at a time into the
database. Does anyone have a suggestion regarding visual basic code we could
use so this could be done automatically?
 
Sam,

In general I would recommend against storing any kind of Binary Large Object
(BLOB) in the database and would recommend instead that you create a
directory structure and store the url or path to the file. But if you must
store a BLOB look in the help under DAO or ADO for the AppendChunk method.
Basically you will open the file using standard file I/O techniques and read
in chunks of the file into your Binary Field in the database.

Dan
 
Back
Top