Wednesday, March 7, 2012

Help with pointing to an image!

I am new to SQL and I am trying to have a column in my table that points to images I have stored in a directory on my system. I cannot seem to get it to work correctly and I am wondering if someone might be able to help. I want to use this image for each record with the other information on my windows form but I cannot seem to get the file pointer right. Any help would be appreciated. Thanks.

If the images are ordinary files stored on disk, the value in the column would be the path to the file. (from the servers point of view)

Is that the case with you?

/Kenneth

|||Yes. They are .jpg files stored in a directory on my hard drive. I tried putting c:\Images\xxxx.jpg. When I try to use data from that column in a windows form application it doesn't return the image.|||

Well, this isn't quite my area of expertise, but in your app, you must handle the jpg appropriately in order for it to show up. There is probably some methods or classes available for handling images (ie binary data) in the language your app is written in.

/Kenneth

No comments:

Post a Comment