Hi,
I'm getting this weird behavior with updates into a mysql database with binary data (images)
It's obviously a web-based form-based update and the update into the table of the new form field data is occuring succesesfully.
The problem is when I go check to see that the image has in fact been changed, the original image is being displayed. Only if I press the reload button on the browser does the updated image display.
I don't know why this is happening but if anyone has any ideas on what I'm doing wrong, I'm all ears.
here's a snippit of relevant code.
$type = $fupload_type; //set image type
$size = $fupload_size; //set image size
$bin_data = addslashes(fread(fopen($fupload, "r"), $size));
$query = "UPDATE image SET caption = '$caption', title = '$title', picture = '$bin_data', picture_type = '$type' person_id = '$person_id' WHERE image_id = '$image_id'";
$result = mysql_query($query);