Re: Handling images using Python

From: Yves Bastide <ybastide(at)IRISA(dot)FR>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Handling images using Python
Date: 2002-11-20 12:42:23
Message-ID: arfvvc$j47$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-11-20 13:45:03 Re: modifying new tuple on insert in c trigger
Previous Message Oliver Elphick 2002-11-20 08:53:11 Re: Bug with sequence