I've gone through all kinds of hoops trying to get this to work and to avail had I any luck.
The problem: when I use IE and right click on the image and select Properties, none of the properties are getting their values (i.e. File Size, Type, Created modified, etc.). However, Address, Protocol and Dimensions are coming up.
The high level of the code is very simple;
1. Do basic session management
2. Open DB connection
3. Get Image and its params
4. Dump the image params (headers)
5. Send the bit stream
And yes this is a seperate file that is sending the image and not embedded in the same HTML file. Any thoughts what may be causing this?
Here is some of the code:
//imports for items 1& 2 above
require_once ("constants.php");
require_once ("dbConnect.php");
require_once ("errorLogger.php");
...
//item 3 from above
while($row = @mysql_fetch_object($dbResult)) {
$lengths = mysql_fetch_lengths($dbResult);
$binData = $row->image_large;
}
...
//items 4 & 5 from above
header("Accept-Ranges: bytes");
//header("ETag: \"2dc012-97c-3e112287\"");
header("Content-disposition: inline; filename=dd.jpg");
header("Content-length: $fileSize");
header("Content-type: image/jpeg");
//header("Last-Modified: Tue, 31 Dec 2002 04:52:23 GMT");
print ("$binData");
I've played with many header types to see if I can bring any changes and had no luck. Any thoughts or solutions to this would be greatly appreciated... time for some Motrin now