I have moved my web site from another host to Jodohost. Both use ASPImage so I figured that I could simply pick up and carry my code to Jodohost and it would work. It doesn't seem to.
I am using the following code:
--- cut here ---
id = request.querystring("id")
set p = Server.CreateObject("ADODB.Recordset")
p.Open "SELECT * FROM dvd WHERE dvd_id = " & id, "dsn=leather1-malemanes" , 0, 1, 1
set i = server.createobject("aspimage.image")
ctt = p("dvd_coverart_type")
i.loadblob p("dvd_coverart_data"),1
Response.Expires = 0
Response.Buffer = True
Response.Clear
Response.ContentType = ctt
Response.BinaryWrite i.image
p.Close
set p = Nothing
set i = Nothing
Response.End
--- cut here ---
The error I get is "ASPImage.Image error '8000ffff' / Bitmap image is not valid / line 45". I thought it might be my database or data, but then...
If I replace the BinaryWrite line with "Response.BinaryWrite p("dvd_coverart_data")", the image is displayed perfectly.
Please help. This all worked perfectly at my last web host.
I am using the following code:
--- cut here ---
id = request.querystring("id")
set p = Server.CreateObject("ADODB.Recordset")
p.Open "SELECT * FROM dvd WHERE dvd_id = " & id, "dsn=leather1-malemanes" , 0, 1, 1
set i = server.createobject("aspimage.image")
ctt = p("dvd_coverart_type")
i.loadblob p("dvd_coverart_data"),1
Response.Expires = 0
Response.Buffer = True
Response.Clear
Response.ContentType = ctt
Response.BinaryWrite i.image
p.Close
set p = Nothing
set i = Nothing
Response.End
--- cut here ---
The error I get is "ASPImage.Image error '8000ffff' / Bitmap image is not valid / line 45". I thought it might be my database or data, but then...
If I replace the BinaryWrite line with "Response.BinaryWrite p("dvd_coverart_data")", the image is displayed perfectly.
Please help. This all worked perfectly at my last web host.