473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Extracting OLE Package Objects from Access

Hi all-
I have received an Access database from someone who has asked me to retrieve all the photos stored in it (as OLE packages). I came across a post entitled "Extracting OLE to pdf" from March 5th 2006 and found a link to a dll and a mdb that will extract the photos, but it writes the jpegs with only there original filename (at least that is all I have been able to get it to do so far). I need to append some information from other fields in the database to identify the photos. I was hoping to use C# .NET, but would gladly use vba or something if that is the only way to do it. So far I have no problem connecting to and reading from the database in C# and vba, but I just can't figure out how to convert the Package Objects back into jpegs. Any thoughts would be greatly appreciated.

Thanks, Ben
Mar 30 '08 #1
3 4508
Thanks for the links. I eventually managed to get the images out and append the row id to the file name with a one line mod to the VBA included in the mdb at http://www.lebans.com/oletodisk.htm

The only shortcoming at this point is that the code seems to write the pictures to disk with a higher level of compression than they had to start with. I'd like to write the pictures to disk without increasing the jpeg compression. I am looking through the VBA to see if I can find a place to set this, it's a lot of code to wrap your head around though. If someone happens to know how to do this already and can share I'd appreciate it.
Apr 3 '08 #3
puppydogbuddy
1,923 Expert 1GB
See:
http://www.lebans.com/oletodisk.htm
NEW - Apr. 14/2002 A2KExportOLEtoJPEG.zip A2K ONLY! This version
saves the entire contents of a table containing OLE Object Images to
disk based Jpeg files. User selectable compression rate. Version 1.5
Apr 4 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Phil Frost | last post by:
Could someone please tell me what should be done to extract a code object from a .pyc? Poking through the source I find examples of using PyMarshal_ReadLastObjectFromFile to get it, but when I...
3
by: Agent86 | last post by:
I have created install packages for my ade on mssql installation as a windows installer package in installshield and it all works fine except; 1. I want to determine whether Access 2002 is...
2
by: John Baker | last post by:
Hi: I have a small project pending where I need to have a data base on our ISPs server and a web interface to the database. At periodic intervals, I want to be able to either interrogate the...
2
by: Chris Belcher | last post by:
First some background... The database tracks Action Items assigned to a group of 20 or so managers. Once the assignment is created it is then emailed to each of the managers that are included in...
3
by: frasmus | last post by:
I have an Access 97 database I've developed to be distributed as an MDE with the A97 Runtime. I've got the application completed to the point I'm ready to begin testing on other machines, but the...
2
by: kkrizl | last post by:
I have an Access database that has a few huge tables. It was taking about 20 minutes per table to import them from another application. I used the upsize wizard to put them in a SQL server...
1
by: Dean R. Henderson | last post by:
I have a Windows library that I bind into a Windows Form application and into an ASP.NET Web Application. I have a procedure in the library that executes a DTS Package. I have also used...
20
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP,...
5
by: Prakash | last post by:
I am developing an HR package under Access 2003 for a client but do not want to give him the source code. I understand that under these circumstances I would need to compile my package, thus...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.