Results 1 to 4 of 4

Thread: scanning an image and store it in access

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Chennai,TamilNadu,India
    Posts
    1

    Post

    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?

  2. #2
    New Member
    Join Date
    Feb 2000
    Posts
    5

    Post

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

  3. #3
    Guest

    Post

    www.dhs.com
    imageBASIC pixelScanning
    Great Product, very reliable.

  4. #4
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    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
    [email protected]
    http://vbcode.webhostme.com/


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width