Well, what I did was this:

            content = col_fields[0][14].tostring()
            pic = "tmp" + str(i) + ".jpg"
            img = open(pic, "w")
            img.write(content)
            print '<img src="%s"><br /><br />' % pic
            img.close()
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.
Victor
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to