Marketplace products
Store Images in a Database
- Version
- 1.0
Page 2 of 3
- Introduction
- Image Insertion
- Image Retrieve
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
Have you got the source code for saving and loadng image from access database using vb.net??
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 be able to retrieve Excel image?
[5]PLEASE HELP. I have registered the .dll, but still can't work, pls tell me what else need to do.[/5]
[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]
This thread is for discussions of Store Images in a Database.