
May 23rd, 2002, 07:02 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Outputting images from SQL Image field
<i><b>Originally posted by : Chris Brown (chrisb@hcuklimited.com)</b></i><br />Hi all,<br /> I'm trying to output multiple images that are held in an SQL image field. The code :<br /><br />While (myDataReader.Read())<br /> Response.ContentType = myDataReader.Item("imageType") <br /> Response.BinaryWrite(myDataReader.Item("imageName"))<br />end while<br /><br />doesn't proceed to the next record and print out another image. I know that more than one record is being returned, but I can't work out how to alter this code to deal with multiple images. <br /><br />All help is definately appreciated<br /><br />Chris
|