473,499 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exporting images (ole object) from access to images folderfolder

Hello All

Is there an easy way to do this?
I have a database that contains records witha image as one of the
fields, what I want to do is export the images to a seperate folder, in
whatever foremat is suitable (gif, jpeg etc)

But i can't work out how to do this

This is all the information i have
The original database was made using access 97, (I have Access 2003)

I have tried using the ole to disk function thingie mentioned in an
earlier post (2002)

http://www.lebans.com/oletodisk.htm

But it keeps coming up with

"sorry this OLE Object contains an unsupported format, Please select a
different record to export"

How do i find out what the ole object in my database is when i look at
the field all it says is "long binary data"

Thanks in advance

Feb 28 '06 #1
3 17128
If thefield in Datasheet view says "Long Binary Data" then you DO NOT have
an OLE object embedded within the field. The field contains plain binary
data which can be anything. Hopefully, the field contains an exact copy of
the original file.

1) What application inserted the binary data?
2) How do you currently view the data in the field?

If you have an associated field that contains the name or at least the file
extension(BMP, JPG, etc) then you can simply save the contents of the field
to a temp disk file with the proper file extension and then set the Picture
property of the Image control to this temp file.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
<ni***********@gmail.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
Hello All

Is there an easy way to do this?
I have a database that contains records witha image as one of the
fields, what I want to do is export the images to a seperate folder, in
whatever foremat is suitable (gif, jpeg etc)

But i can't work out how to do this

This is all the information i have
The original database was made using access 97, (I have Access 2003)

I have tried using the ole to disk function thingie mentioned in an
earlier post (2002)

http://www.lebans.com/oletodisk.htm

But it keeps coming up with

"sorry this OLE Object contains an unsupported format, Please select a
different record to export"

How do i find out what the ole object in my database is when i look at
the field all it says is "long binary data"

Thanks in advance

Mar 1 '06 #2
Thanks for the reply

I was given this database to work with, I have no idea what was used to
insert the binary data,
The data type says OLE Object, the field says "Long Binary Data"
the data is currently viewed through a form (sorry I don't know a heck
of a lot about access) , so i am guessing the only way to get the
images is by using screenshots,

oh well it was worth a try

Thanks for all the help

Mar 8 '06 #3
You need to save the Long Binary field to a temp file on your drive. You
must ensure the file extension is the correct one, ie BMP, TIF, etc. THen
point the Picture property of a standard Image control to this temp file.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"nigel" <ni***********@gmail.com> wrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
Thanks for the reply

I was given this database to work with, I have no idea what was used to
insert the binary data,
The data type says OLE Object, the field says "Long Binary Data"
the data is currently viewed through a form (sorry I don't know a heck
of a lot about access) , so i am guessing the only way to get the
images is by using screenshots,

oh well it was worth a try

Thanks for all the help

Mar 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3416
by: Dom Hicklin | last post by:
I have created a form onto which images can be dropped and thus added to the OLE field of a Table (Access 2000 linked to SQL 2000 server). I use the Stephen Lebans ExportOLE function to do this...
4
15785
by: Otis Hunter | last post by:
I have been given an Access Database which contains a table that has an OLE object field that contains a Word document. That table contains hundreds of records. I would like to find out how I can...
0
3314
by: Otis Hunter | last post by:
I have been fighting with this for days and your expert help is needed! Below is the code I am executing which results with "Object doesn't support this property or method". The error is occuring...
1
7477
by: Zeroeffect | last post by:
Hello! I have a database with alot of embedded images. The reason for having the images embedded is security. My problem is that it works fine on my computer, but not on my clients computer....
4
1658
by: gs | last post by:
I have searched Google, MSDN,... for a week. I am still unable to make available functions in my csharp dll as native windows functions for some legacy non dotnet application I just want to...
8
3587
by: Bob | last post by:
I'm looking for an example of how to extract images from an Access 97 blob into an asp datagrid. Anybody have examples?
9
3813
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
2727
by: Skiran | last post by:
Hi to everybody, I am handling a large-scale project of MIS (Marketing information System). I am using Vb 6 as front end, Ms Access as back end and Crystal report 8 as reporting tool. 1)...
4
11548
by: Rico | last post by:
Hello, I have an MDE application where I use a bound object frame to display an image. This frame is updatable and bested on the contents of an OLE field. My problem is, some images display as...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.