Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Import/Export Data

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-13-2010, 02:24 PM
wbkayani wbkayani is offline Windows Vista Access 2000 (version 9.0)
Novice
 
Join Date: Jan 2010
Posts: 5
wbkayani is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 01-13-2010, 06:26 PM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,348
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

See if Stephan Lebans has something you could use effectively.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #3  
Old 01-14-2010, 05:44 AM
wbkayani wbkayani is offline Windows Vista Access 2000 (version 9.0)
Novice
 
Join Date: Jan 2010
Posts: 5
wbkayani is on a distinguished road
Default 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
Reply With Quote
  #4  
Old 01-14-2010, 07:57 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,348
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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?
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #5  
Old 01-14-2010, 08:43 AM
wbkayani wbkayani is offline Windows Vista Access 2000 (version 9.0)
Novice
 
Join Date: Jan 2010
Posts: 5
wbkayani is on a distinguished road
Default 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.
Reply With Quote
  #6  
Old 01-14-2010, 08:54 AM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,348
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

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?
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #7  
Old 01-14-2010, 03:25 PM
wbkayani wbkayani is offline Windows Vista Access 2000 (version 9.0)
Novice
 
Join Date: Jan 2010
Posts: 5
wbkayani is on a distinguished road
Default 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
Reply With Quote
  #8  
Old 01-14-2010, 03:30 PM
RuralGuy's Avatar
RuralGuy RuralGuy is online now Windows 7 Access 2007 (version 12.0)
Administrator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 4,348
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

Good luck. Sorry I could not be of more help.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
storing and printing on a pdf jlm722 Reports 4 10-27-2009 12:48 AM
Input (storing) output question spacewater Access 0 10-17-2009 06:14 AM
How to Display Images in a Form or in a Report Without Storing the Images in a Table islandboy Access 17 08-26-2009 09:27 AM
Using Attachments and Images Matrix Forum Support 0 04-25-2009 12:53 PM
Storing an Equation in Table tmedler Programming 0 03-09-2009 07:25 AM


All times are GMT -8. The time now is 10:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.