Marketplace products

Store Images in a Database

Version
1.0

Image Insertion

I am giving you code snippets that show you how to handle those two methods. For inserting an image into database I have used an Image Control (let the name Image1). First Select an Image and put it into the Image1 control on the form, add a submit button, and write the following code:

rec.Open <database name>, con, adOpenKeyset, adLockOptimistic
rec.AddNew
Dim pp As New ADOPictDB32.ADOPictDB
Dim temp As String
temp = "picture.tmp"

If Image1.Picture <> 0 Then
 SavePicture Image1.Picture, temp
 pp.putPict rec, "pict", temp
Else
 Exit Sub
End If
rec.Update
rec.Close
Set rec = Nothing

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).

AddThis