Hi all,
Trying to figure out how to access and manipulate the BLOB data--not to output to the browser, but to save to the filesystem or perform ming functions on an image, for example. I'm getting image data like this:
if($id) {
mysql_select_db ("$DBName", $link );
$query = "select bin_data, filetype from binary_data where id=$id";
$result = @($query);
$data = @MYSQL_RESULT($result,0,"bin_data");
$type = @MYSQL_RESULT($result,0,"filetype");
}
Okay, so now if I just echo $data (even without the header info) the browser displays it, but if I try to use $data as an image in any other way, it just comes out as binary.... Any help would be great. Thanks,
Jago