I have images stored as BLOBs in my SQL Server DB in order to keep them more secure than leaving them in a web directory. I have a page that needs to pull data and images from the database and display them on the screen.
I am grabbing the image using
set oImg = rs.fields("photo".getChunk(16)
But how do I display this on the web? I have seen many samples of this done, but the examples I've seen set Response.Contenttype to "image/GIF". But if I do that, I get a "Header error... header mods must be made before writing page content..."
So I need to be able to loop through records in the DB, display some data and an image for each record.
Can someone give me a sample of this being done?
Thanks,
Scott
I need to
I am grabbing the image using
set oImg = rs.fields("photo".getChunk(16)
But how do I display this on the web? I have seen many samples of this done, but the examples I've seen set Response.Contenttype to "image/GIF". But if I do that, I get a "Header error... header mods must be made before writing page content..."
So I need to be able to loop through records in the DB, display some data and an image for each record.
Can someone give me a sample of this being done?
Thanks,
Scott
I need to