For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2005 > Re: [PEAR] DB_DataObject, BLOBS + base 64 encoding









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] DB_DataObject, BLOBS + base 64 encoding
Justin Patrin

2005-06-10, 3:59 am

On 6/9/05, Rob Agar <rob@wildlime.com> wrote:
> hi all
>=20
> 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?
>=20
> I'm tempted to encode it anyway, but voodoo programming gives me the
> heebie jeebies =3D)
>=20


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.

--=20
Justin Patrin
Rob Agar

2005-06-10, 3:59 am



> From: Justin Patrin
> 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.


Ah good. Don't know where i got the idea that encoding was necessary.
Probably this list ;)

cheers Justin

Rob
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com