Re: Handling images using Python - Mailing list pgsql-general

From Yves Bastide
Subject Re: Handling images using Python
Date
Msg-id arfvvc$j47$1@news.hub.org
Whole thread Raw
In response to Handling images using Python  (Andreas Tille <tillea@rki.de>)
List pgsql-general
Andreas Tille wrote:
> Hello,
>
> I tried to store some images in PostgreSQL using Python via
> psycopg database adapter.  Unfortunately the examples I found in
> the web very not really the best - I just was not able to get one
> working.
>
> Is there anybody who could give an example how to store an image
> in a usual format (PNG, JPG, ...) into a simple table and get
> it back via Python?

Did you check psycopg's examples/binary.py?  It works for me.

>
> Kind regards
>
>         Andreas.

yves


pgsql-general by date:

Previous
From: Jeff Sacksteder
Date:
Subject: Re: null date comparison(DISREGARD!)
Next
From: Francisco J Reyes
Date:
Subject: Re: Hardware estimation