[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2008-06-19
3
Medium Priority
?
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

656 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