We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 50,800 times

Contents

Downloads

Related Categories

Store Images in a Database - Introduction

Store Images in a Database 1.0

Unknown Software Publisher
More Information & Purchase
Unknown Software Publisher

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

  • Re: [2233] Store Images in a Database

    Posted by wilson82 on 14 Nov 2006

    Have you got the source code for saving and loadng image from access database using vb.net??

  • compile error

    Posted by hermanhartanto on 13 Feb 2005

    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.

  • Would this DLL work with Excel?

    Posted by cvu on 04 Oct 2004

    Would this DLL be able to retrieve Excel image?

  • PLS HELP, ERGENT!

    Posted by liewkimfatt on 23 Sep 2002

    [5]PLEASE HELP. I have registered the .dll, but still can't work, pls tell me what else need to do.[/5]

  • Compile error

    Posted by liewkimfatt on 23 Sep 2002

    [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]