Re: More Fun With MySQL and Images

2008-04-17 Thread Victor Subervi
Yeah, I figured that out between posts ;) On Thu, Apr 17, 2008 at 10:39 AM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote: > On Thu, 2008-04-17 at 09:52 -0500, Victor Subervi wrote: > > Never mind. Apparently, these tags throw it for that loop: > > print '\n' > > I´m surprised they would, but gratifi

Re: More Fun With MySQL and Images

2008-04-17 Thread J. Cliff Dyer
On Thu, 2008-04-17 at 09:52 -0500, Victor Subervi wrote: > Never mind. Apparently, these tags throw it for that loop: > print '\n' > I´m surprised they would, but gratified I found the problem. > Victor > > Why does that surprise you? A jpeg has a well-defined header that tells whatever appl

Re: More Fun With MySQL and Images

2008-04-17 Thread Victor Subervi
Never mind. Apparently, these tags throw it for that loop: print '\n' I´m surprised they would, but gratified I found the problem. Victor On Thu, Apr 17, 2008 at 9:42 AM, Victor Subervi <[EMAIL PROTECTED]> wrote: > Hi again: > Here is my code, an edit of Gabriel´s: > > #!/usr/local/bin/python

More Fun With MySQL and Images

2008-04-17 Thread Victor Subervi
Hi again: Here is my code, an edit of Gabriel´s: #!/usr/local/bin/python import cgitb; cgitb.enable() import MySQLdb def test(): host = 'host' db = 'db' user = 'user' passwd = 'pass' db = MySQLdb.connect(host=host, user=user, passwd=passwd, db=db) cursor= db.cursor() cursor.execute('