Re: Insert file into sql server binary field.

From: Date: Sun, 24 Nov 2002 18:16:48 +0000
Subject: Re: Insert file into sql server binary field.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-125826@lists.php.net to get a copy of this message
Never heard of that, in fact, addslashes escapes also NUL, so it must be binary, and BLOB is like TEXT, except for comparison is case sensitive in BLOB. And what if the file contains malicious code - it might come from remote user's upload Sterling Hughes wrote:
Read the file, addslashes(), and then insert it
Rather, read the file, don't touch addslashes, then insert it. AddSLashes is not for binary data... -Sterling
Naif Al-Otaibi wrote:
How can I insert a file into a binary field in sql server 2000. Do I need some function in the query like upload or just read the file and insert it. Thanks,
     
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#125826) next »