Images Stored in SQL to show on ASPX pages?

V

Vonnie

I have images stored in SQL (not paths or urls)
I need to show them on webpages but the image control only seems to have a
imageurl property.

Is there another control I should use to databind?

is there a way to databind the imageurl property?

I am using VS 2005 but if you know how to do it in 2003 that helps too.

Thanks mucho for any advice
 
G

Guest

you should be able to just .write it to the screen, you wont use an image
control.

Just google it, I think you will find a ton of samples. As a side note, it's
still not a great idea to store the image in the DB if you can do it
elseways... but that's another issue.
 
V

Vonnie

I found this at sqlteam.com is something like this what you mean?

Response.Write "<a href=" & trim(bobjRS("LinkToURL")) & ">"
Response.Write "<IMG SRC=" & trim(bobjRS("ImageURL")) & " BORDER=0 "
Response.Write " WIDTH=" & trim(bobjRS("Width"))
Response.Write " HEIGHT=" & trim(bobjRS("Height"))
Response.Write " ALT=" & Chr(34) & trim(bobjRS("ALTText")) & Chr(34)
Response.Write "></a>"
Thanks for pointing me in this direction! I googled at lot but never found
anything except storing urlsCurt_C [MVP]" <software_at_darkfalz.com> wrote
in message you
should be able to just .write it to the screen, you wont use an image
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top