Oleg Broytmann wrote:
> On Thu, Jun 28, 2007 at 02:28:54PM +0200, Tom Arild Naess wrote:
>> Is this correct behaviour? I would think binary data should go straight 
>> in and out of the database, regardless of charset.
> 
>    What do you mean by "stright"? This line

I mean without being converted to any charachter encoding, since it's 
binary data.

> 
>>    File 
>> "c:\python24\lib\site-packages\SQLObject-0.9.0-py2.4.egg\sqlobject\mysql\mysqlconnection.py",
>>  
>> line 113, in _executeRetry
>>      query = unicode(query, self.encoding)
> 
>    was executed because you use the version of MySQLdb (1.2.1+) that
> requires unicode, and SQLObject has to convert strings to unicode somehow.

What should I do with the data before sending them to SQLObject? Base64 
encoding is one way, but it wastes too much space. There must be a way 
to put the raw data into the BLOB field.

Regards,

Tom


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to