Marketplace products

Store Images in a Database

Version
1.0

Introduction

I have seen lot of queries about “How to insert an image into database as well as retrieve an image from database?” at Developer Fusion’s forum. I have developed an “ActiveX DLL” which will work on Microsoft Access Database.

The name of that ActiveX DLL is “ADOPictDB32.dll”. ADOPictDB32.dll one Sub Procedure and one Function

  • putPict(ADODB.Recordset, Database Fieldname, Temporary Filename)
  • getPict(ADODB.Recordset, Database Fieldname, Temporary Filename) as String

Here putPict is the Sub Procedure, which takes an ADODB.Recordtset object as 1st argument, Database Fieldname in which the picture will be held as 2nd argument and the temporary filename as 3rd argument (this will held the picture file temporarily). The Sub Procedure putPict is used to put picture into database.

getPict is a Function which takes 3 arguments same as putPict () Sub Procedure but return the filename. getPict is used to get picture from database. The Database Type is Microsoft Access

The Database structure that I have used is given below

Field nameData type
PidAuto Number
PictOLE Object

You must add ADOPictDb32.dll as Reference to the Project.

Comments

  1. 14 Nov 2006 at 13:31
    Have you got the source code for saving and loadng image from access database using vb.net??

  2. 13 Feb 2005 at 08:36
    I got compile error: Object liabrary invalid or contains reference to object definitions that could not be found. What is the problem? Pls help. Thank you.
  3. 04 Oct 2004 at 10:30

    Would this DLL be able to retrieve Excel image?

  4. 23 Sep 2002 at 11:33
    [5]PLEASE HELP. I have registered the .dll, but still can't work, pls tell me what else need to do.[/5]
  5. 23 Sep 2002 at 08:14
    [3]I got compile error: Object liabrary invalid or contains reference to object definitions that could not be found. What is the problem? Pls help. Thank you.[/3]
  6. 01 Jan 1999 at 00:00

    This thread is for discussions of Store Images in a Database.

Leave a comment

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!