These are the methods Ive tried so far:
Set rs = con.Execute("SELECT image_data FROM images where image_id=" & target)
Response.BinaryWrite rs("image_data")
Set rs = con.Execute("SELECT image_data FROM images where image_id=" & target)
size=rs.fields("image_data").actualSize
blob=rs.fields("image_data").getchunk(size)
Response.BinaryWrite rs("image_data")
Well, I have tried both these ways of displaying my images. I put this code in
my image.asp file and call it using <IMG SRC="image.ASP">
Either of these methods will work for images stored before our upgrade but will not work for any images stored after the upgrade.
If I save the contents of the blob column to a text file, the headers of the good file and the bad file look identical with a JFIF header. The "good" file is 17k
the "bad" file is 30k.
Once I have them saved to disk, I can give the files a .jpg extension and open either file using photoshop or paint shop pro and they look fine.
The "good" file is 354x444 pixels, 4.917x6.167 inches, 72 dpi, color depth 24/16million, one layer
The "bad" file is 480x600 pixels, 6.667x8.333 inches, 72 dpi, color depth 24/16million, one layer
I'm at a loss where to go next. I can't see why these new blobs wont work. I have absolutely no control over what the vendor's application stores in the blob, after all it works fine with their application and they're not responsible for fixing my problems..
I'm grasping at straws, maybe switch to a .jsp page or try php, but Ive never worked with either of these and dont know the equivalent code to show my image.