Solved

Write OLE object containing bit map to BMP file using Visual Basic

Posted on 2008-06-19
3
341 Views
Last Modified: 2008-07-14
I have a database table with OLE objects holding BMP files.

Using DAO I can read the object into an Obejct variable and see the data as obj.value and the size as obj.FieldSize.

When I use "put" or "write" to dump the data to a file I get a different file size and I cannot view the picture.

Can you tell me what is the easiest way to write out the data to a BMP file?
0
Comment
Question by:valerieschupbach
  • 2
3 Comments
 

Accepted Solution

by:
valerieschupbach earned 0 total points
ID: 21836990
I found a solution myself at:

http://www.ammara.com/access_image_faq/read_write_blob.html

However my error was to load the bmp file through InsertObject rtaher than FileToBlob; as a result running BlobToFile will not reproduce the original image. So you have to use FileToBlob and BloToFile in conjunction for it to work well.
0
 

Author Comment

by:valerieschupbach
ID: 21836992
How can I close this question myself?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now