Displaying images in gridview?

G

Guest

I'm working on an ecommerce-type we app, and I would like to save/retrieve
image information into my sql server DB. If I save the file path in my
table, how can I use that info to display the image in the gridview? IS there
a better way?
Since there are so many products, I don't want to save the actual image into
the DB. I just want to save some info that I can later reference when I fill
up my grid.
What's the best way to do this?

Thanks.
 
C

Cor Ligthert [MVP]

VMI,

I would do it as you wrote it, with the addition to use thumbnails on your
pages instead of original images.

Getting the place from the Server is of course just a string of the path
that you have saved in whatever datatype on the server you want for it, as
long as the datatype hold the charachters as you want to use.

Be aware that as soon as you start to save the actual images in the server
than it is a long way to go; because either you have to sent an url page as
raw image to the clients or either you have to put them temporaly on disk.
Both has the same result; it is bad to manage.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top