Hello All,
I am having a issues with trying to display a image that has been saved to my database.
Here is the code that I am trying to use.
Can any one help??
Dim ID
Dim sSQL
Dim oRS
Dim Field
Dim FileLength
ID = Request.QueryString("ID"
Response.ContentType = "image/gif"
sSQL = "SELECT image_blob, filesize FROM UserImages WHERE UserID =" & ID
Set oRS = getRS(sSQL)
oRS.MoveFirst
Set Field = oRS("Image_blob"
FileLength = oRS("filesize"
Response.BinaryWrite Field.GetChunk(FileLength)
oRS.Close
I am having a issues with trying to display a image that has been saved to my database.
Here is the code that I am trying to use.
Can any one help??
Dim ID
Dim sSQL
Dim oRS
Dim Field
Dim FileLength
ID = Request.QueryString("ID"
Response.ContentType = "image/gif"
sSQL = "SELECT image_blob, filesize FROM UserImages WHERE UserID =" & ID
Set oRS = getRS(sSQL)
oRS.MoveFirst
Set Field = oRS("Image_blob"
FileLength = oRS("filesize"
Response.BinaryWrite Field.GetChunk(FileLength)
oRS.Close