• 0

[vb.net]displaying an image from a database


Question

ok this may be hard to explain but i'll try

ok basically what i've done is allow a user to save the path to an image to an access database

for example: "c:\image.bmp" is stored in the access column "pic"

how do i extract that from the database and display the image.bmp on a form?

hope that's clear enough sorry if it isn't

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
ok this may be hard to explain but i'll try

ok basically what i've done is allow a user to save the path to an image to an access database

for example: "c:\image.bmp" is stored in the access column "pic"

how do i extract that from the database and display the image.bmp on a form?

hope that's clear enough sorry if it isn't

Open the Access DB's BLOB field as a stream (look it up if you don't know what it is)... Pass the Stream to a Bitmap/Image Object and load. Pass the Bitmap/Image object to a Picturebox...

Link to comment
Share on other sites

  • 0

I'm having a simular problem with pdf documents. I was able to stream it to binary but the filestream requires specific access to a directory. Is there a way to bring up the file save as dialouge box to specify where the user wants to save it?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.