Results 1 to 8 of 8
  1. #1
    wbkayani is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    5

    Storing OLE Images to files

    Hi Guys,
    I am .Net programmer, not using MS Access regularly. Currently I am working on a project where I have to develop a website for my client. This client is already using an MS Access database where he has thousands of records with their photos saved in OLE OBJECT field as embedded pictures. User is simply pasting pictures in picture box and system is storing pictures as embedded pics and showing "Picture" when you see that table in datasheet mode. This Picture format is not readable from VB.Net and I know as this is very poor database design.

    My Question Iis: Is there any way to read these photos in MS Access from picture box or from the table directly and store those pictures in some folder using their IDs as name so I can read images from file folder and this will decrease huge amoount of database size, such as every record have IDs 1,2,3......xx.

    I can write the code to store images from VB.Net to MS Access and then can read those images back easily. But when I store images from VB.Net, I don't paste those images in the picture box, I just select the picture by browing the folder and saving it to database as Long Binary Data, which is easily readable from VB.Net code.

    Any help will be much appreciated.

    Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  3. #3
    wbkayani is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    5

    Thank you RuralGuy!

    It worked fine in access!

    But I am usng VB.Net to import those photos form MS Access Database. That code works only from inside the VBA. Is there any possibility to redesign this utility in VB.Net.

    Thanks

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I took a look at it and it is a stand alone application that will open another db and save all of the OLE objects to disk if that is what you want. Wouldn't that work for you on a one time basis?

  5. #5
    wbkayani is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    5

    It works fine but

    I have VB.Net code and want to convert images living inside the vb. If thee is a way which I can run An Access code from inside the VB.Net code then that will be good.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by wbkayani View Post
    I have VB.Net code and want to convert images living inside the vb. If thee is a way which I can run An Access code from inside the VB.Net code then that will be good.
    Probably, but I have no idea how. I know nothing about VB.Net. Will this be a continuing process or a one shot get it done thing?

  7. #7
    wbkayani is offline Novice
    Windows Vista Access 2000
    Join Date
    Jan 2010
    Posts
    5

    It will be a regular thing.

    This is an estate agent company, want t upload images on the web on daily basis. Anyway; thanks for your help and I will try to use the code you reffered.

    Thanks and Regards

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Good luck. Sorry I could not be of more help.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. storing and printing on a pdf
    By jlm722 in forum Reports
    Replies: 4
    Last Post: 10-27-2009, 02:48 AM
  2. Input (storing) output question
    By spacewater in forum Access
    Replies: 0
    Last Post: 10-17-2009, 08:14 AM
  3. Replies: 17
    Last Post: 08-26-2009, 11:27 AM
  4. Storing an Equation in Table
    By tmedler in forum Programming
    Replies: 0
    Last Post: 03-09-2009, 09:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums