Storing files in a BLOB field via SQL

Martin Bless m.bless at gmx.de
Tue Jul 6 07:23:15 EDT 2004


[J.Gerner at GernerOnline.de (Juergen Gerner)]

>I want to store files in a database using BLOB
[...]
>Does anybody of you have an idea?

Maybe its a version issue. I recently grabbed the new version 1.0.0 of
MySQLdb. In the readme.html of the Win binary package you will find
this note:

"""
MySQL-Python 1.0.0 for win32 Notes:
June 28 2004
I needed to get mysql-python working for win32, so I compiled it. I
know a lot of people are looking for this, so enjoy... With 0.9.2,
BLOBs weren't working properly for me, ...
"""

Second:
Skimming over the docs I noticed that the Python API converts BLOBs to
array. Don't know if this hint is of significance in your case.

Hope it helps,
Martin





More information about the Python-list mailing list