Re: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Mike Gifford
Hi Martin, I read somewhere else that this was required for binary files.. However it certainly doesn't seem to be.. As it turns out, when I took out the stripslashes($row[0]) from: // 1. Get Image from DB to String $sql = "SELECT Image FROM Images WHERE ID='$ID'"; $res = dbi_quer

RE: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Martin Towell
try changing this line fputs($fd,$Images,strlen($Images)); to fputs($fd,$Images); as you don't need to specify the length. If you don't specify the length, it'll write the entire string. see how that goes... -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Friday