Click to See Complete Forum and Search --> : scanning an image and store it in access
d_babu_d
Feb 17th, 2000, 06:49 PM
I want to scan some photos and the same has to be displayed to the user and has to be stored in an access database thro' a vb program.
I tried thro Wangsamp Scan Control, the control invokes the scanning process correctly but unable to complete the scanning process. After reaching 3 or 4% the application hangs.
can anyone give some good suggestions?
benpartlow
Feb 17th, 2000, 10:14 PM
I don't know if you want to use your VB app to scan the image or not, but if you use another application to scan, you can store the path to the image in the access database and then view the image with your VB app with this code:
Private Sub Command1_Click()
my_sql = "Select photo from photographs WHERE name LIKE '" + Combo1.Text + "' AND place LIKE '" + Combo2.Text + "' AND date LIKE '" + Combo3.Text + "'"
Data1.RecordSource = my_sql
Data1.Refresh
End Sub
Private Sub Text1_Change()
Image1.Picture = LoadPicture(Text1.Text)
End Sub
set the TEXT1 data source property to the name of your data source ("data1" in example) and the data field property to the name of the field containing the path to your image ("photo" in the example). The loadpicture function will load the image into any image box that you choose ("Image1" in the example).
www.dhs.com (http://www.dhs.com)
imageBASIC pixelScanning
Great Product, very reliable.
smalig
Feb 19th, 2000, 09:14 PM
Try the samples at
How to save picture file to database
http://vbcode.webhostme.com/en/click.asp?id=71
Scanning by using EZTW32.DLL
http://vbcode.webhostme.com/en/click.asp?id=114
Regards
------------------
smalig
smalig@hotmail.com
http://vbcode.webhostme.com/
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.