Re: DB_DataObject, BLOBS + base 64 encoding
| From: | Justin Patrin | Date: | Fri, 10 Jun 2005 00:02:36 +0000 |
| Subject: | Re: DB_DataObject, BLOBS + base 64 encoding | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19588@lists.php.net to get a copy of this message | ||
On 6/9/05, Rob Agar <rob@wildlime.com> wrote:
> hi all
>
> I'm using DB_DataObject to store uploaded documents in a BLOB field.
> Strictly speeaking, should I base64 encode the data before giving it to
> the DBDO? I thought it was necessary to do so, but now I try it
> without any encoding, I find that it works no problem. Or is it working
> just because I'm testing with trivial one line word docs?
>
> I'm tempted to encode it anyway, but voodoo programming gives me the
> heebie jeebies =)
>
This shouldn't be needed. The DB should be fully capable of storing
binary data and DB and DB_DO should be escaping it properly to go into
the SQL.
--
Justin Patrin