Hello all. I'm trying to write a script where a user uploads a pic, the pic gets resized and then put into a mySQL BLOB. After scouring the internet for days.. I finally pieced together a little script that can do this. BUT it only works on Internet Explorer for some reason. It doesnt work on Mozilla browsers or the Mac OS browser.. whatever it is. I think it has something to do with this bit of code:
ob_start();
imageJPEG($newim);
$binary_thumb = ob_get_contents();
ob_end_clean();
You can find the whole script here:
image resize thingie
Does anyone have any ideas on how i can fix this? I don't want to save the image in a directory either. I want to resize it and put it directly into mySQL. So the resized image goes into a temp file before hand? Any help is greatly appreciated!