BLOBS and python
Edward C. Jones
edcjones at erols.com
Fri May 5 00:29:51 EDT 2000
sp00fD wrote:
> I'm trying to insert an image as a blob, but unless I escape any quotes
> ("') within it, it seems to puke. The problem is, it's an image and if
> I escape the quotes, I change the image. How can I do this?
I got fed up with escaping in blobs. I now use encodestring from the
base64 module to convert any binary string into characters that never need
escaping.
More information about the Python-list
mailing list