• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

Access Database Images to VB Form

Hello,

I am trying to make a database use in a vbForm.  Everything seems to be fine, as in the text fields are all loading.  However, I also have images in it, but they dont come on the form.  It says invalid picture.  if i put that picture directly into it, it works.  Not when the database loads it.  I have the image stored in the database as an OLE object.  Is there a special conversion needed?

I am using a bmp file.  I tried jpg as well.
Thanks!  
0
jwnrb
Asked:
jwnrb
  • 2
  • 2
1 Solution
 
BahnassCommented:
in VB U use picture box or OLEContainer !!!
0
 
jwnrbAuthor Commented:
Ah neat OLE Container works.

thanks so much!

why wouldnt image work before?  picture now says invalid source but ole works just fine!

thanks!!!!

jw
0
 
BahnassCommented:
in access picture stored as ole object not just a picture file but ACESS Stores some header info about the file

(I knew that from extracting that field using getchunk)
any how thanks 4 points
0
 
jwnrbAuthor Commented:
i received a demo file that did make use of the picture object and access said it wsa ole type..but when i tried to investigate it, it said activeX server error and the in edit mode it had long binary data type written.  (when i made my own, it said Photoshop File).

but oh well.  at least i got it to work now!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now