Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Loading image from database
Started by ggardner@iwworks.com at 02-03-2004 18:00. Topic has 1 replies.

Print Search Next Thread »
  02-03-2004, 18:00
ggardner@iwworks.com is not online. Last active: 12/10/2004 5:49:37 AM ggardner@iwworks.com

Not Ranked
Joined on 01-31-2004
Posts 4
Loading image from database
Reply Quote

I have an Access database with just two fields: a text field and an OLE Object field which I inserted a bitmap field of a .jpg file into. Using the example program vbbind32 that came with the activeX I tried to use my database instead of the leadpic database that came with it. It won't load the image though as it does with the leadpic database. Why is that?

For the application I need to create the .jpg file needs to be inside the database and not just a reference to the filename stored somewhere else. How do I do that?


   Report 
  04-29-2005, 11:56
Ike is not online. Last active: 7/27/2007 10:27:54 PM ike



Top 25 Posts
Joined on 04-28-2005
Posts 181
Re: Loading image from database
Reply Quote

When the LEAD ActiveX is bound to the database field, we store some extra bytes in front of the image data which let us know where the image file begins and where the annotation data (if present) begins.  However, if this data is missing, we still attempt to load the image data from the blob.  In your case, I'm not sure why it is not loading the image, unless the data in the field is incorrect (i.e. can't be recognized as a JPEG file).

A 2nd solution is for you to fetch the data from the BLOB field yourself, and then use LoadMemory to load the image.

Ike Starnes
LEAD Technologies, Inc.


   Report 
Post
LEAD Support Fo... » Developer » Database » Loading image from database

Powered by Community Server, by Telligent Systems