set connGraph=opendb("connGraph")
set rec=server.createobject("ADODB.recordset")
strsql="SELECT * FROM CCIC_NetSchool_Images where chapterid= "& chapterid &" and contentflag='"& contentflag &"' and imageid= "& imageid &" "
rec.open strsql,connGraph,1,1
Response.ContentType = "image/*"
Response.BinaryWrite rec("image").getChunk(7500000)
rec.close
set rec=nothing
set connGraph=nothing