String Literal to Blob

Victor Subervi victorsubervi at
Thu Apr 10 19:04:43 CEST 2008

Well, what I did was this:

            content = col_fields[0][14].tostring()
            pic = "tmp" + str(i) + ".jpg"
            img = open(pic, "w")
            print '<img src="%s"><br /><br />' % pic
where I am incrementing i. Ugly. Stupid. But if it is the only way to do it
in python, and I do not want to invest the time doing it in php, which I
think would be prettier in this instance, then I guess it will do. Your
thoughts appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list