Click to See Complete Forum and Search --> : Display image from a database


screaming_banjo
08-10-2004, 11:52 AM
Hi,

I'm very new to ASP so forgive me if I'm a mile out here! I have some data held in an Access database, I'm also linking to images from the database. I would like the image to be output to the screen, however all it displays is the path to the image rather than the image itself. Is there something I need to do in the database, or is it the code itself? Here's what I've got:

<%
response.Write "<strong>" & rsNewsArticle("ArticleTitle") & "</strong><br>"
response.write rsNewsArticle("ArticleContent")
response.write rsNewsArticle("ArticleImage")
%>

Thanks in advance for any help, I am pretty clueless!

CardboardHammer
08-10-2004, 11:58 AM
Use an image tag.

Example from this page's source:

<img src="/forum/images/vb_bullet.gif" border="0" align="middle" alt="WebDeveloper Forums : Powered by vBulletin version 2.3.4">

screaming_banjo
08-11-2004, 04:26 AM
What a chump I am, so obvious, working like a charm now!

Thank you so much for your help!

CardboardHammer
08-11-2004, 09:39 AM
You're welcome :cool: