I have images stored in a database. I would like to display them on my web pages. I know that I need to use Response.BinaryWrite( bdata) but when I do all that shows is the the binary data not the image, like the data is not being decoded.
page 1.asp
<body>
<img src="getthumb.asp?TNID=1" />
</body>
getthumb.asp
if not (rs.eof and rs.bof) then
Thumb = rs("thumbnail")
Response.ContentType = "image/jpeg"
Response.BinaryWrite Thumb
End If
...
I am using IIS5.1 is there something that I am missing.
page 1.asp
<body>
<img src="getthumb.asp?TNID=1" />
</body>
getthumb.asp
if not (rs.eof and rs.bof) then
Thumb = rs("thumbnail")
Response.ContentType = "image/jpeg"
Response.BinaryWrite Thumb
End If
...
I am using IIS5.1 is there something that I am missing.