I am trying to connect to Oracle 9i db. I am trying to query for a jpeg. I keep on recieving a windows download popup after executing the webpage. I have enclosed the code. The sql is correct. Dont know what else is wrong. PHP and GD is setup correctly. I can view jpegs through php. Thanks.
The query is written correctly. I was recieving the picture in its binary form and not a jpeg. The code below needed to be added to display the picture as a jpeg. The code needed to be place over the original "header" info.
imagecreatefromstring ($pic); //creates and puts pic in memory
header('Content-Type: image/jpeg'); //diplay format in browser
imagejpeg($pic); //changes pic to jpeg
imagedestroy($pic); //Frees up image from memory
echo "$pic"; //displays image