storing binary files to mySQL ???
steindl fritz
python at floSoft.org
Tue Dec 17 12:42:32 EST 2002
Fredrik Lundh wrote:
> Gerhard Häring wrote:
>
>> > I'm pretty sure there's a better way,
>>
>> The better way is to let the DB-API 2.0 module handle the quoting for
>> you:
>
> the original poster tried that, and got weird errors in return.
>
> reading his post again, I now see that he used ('%s', '%?') instead
> of (%s, %s). guess it's time to switch to a larger font.
>
> </F>
to clear that '%?'
i did not really use '%?' -
i tried all format letters i could find (s, d, i, x, ...),
because i hoped there is a way to format binary files into the sql-string
but that did not work
yours
fritz
(-:fs)
More information about the Python-list
mailing list