Oracle and PHP BLOB, trying to load file from web page - open or save
Posted on 2004-04-15
"Internet Explorer cannot download file.php?id=1005 from 192.168.1.100.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later"
The code for this is below file.php file is below. Now if I remove the header() functions and simple print the contents of $results["BINARY_FILE"];, it will print the binary data out as text just fine. I have verified that all the database fields are being retrieved.
$cmdstr = "select * from uploads2 where upload_id=".$_REQUEST["id"];
$parsed = ociparse($db_conn, $cmdstr);
header("Content-Disposition: attachment; filename=".$results["FILENAME"]);
So... any ideas here?