note 37355 rejected from function.odbc-binmode by pollita

From: Date: Wed, 12 Nov 2003 06:00:16 +0000
Subject: note 37355 rejected from function.odbc-binmode by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-60282@lists.php.net to get a copy of this message
Note Submitter: nospam@plocmstart.com ---- OK, so how do you PUT binary data into an ODBC database? I have a ASP script that works but I want to migrate to just PHP. Something like this doesn't work: $contents = fread(fopen($imgfile, "rb"), filesize($imgfile)); $SQLstmt = "UPDATE Info SET DataSize=$imgfile_size, " ."PicData='$contents', " ."ContentType='$imgfile_type' " ."WHERE ID=$ID"; $exe_id=odbc_do($connection, $SQLstmt); So what would work?

« previous php.notes (#60282) next »