X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9CEE5542E9 for ; Sat, 23 Apr 2005 16:43:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69328-09 for ; Sat, 23 Apr 2005 19:43:47 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2A7D75375A for ; Sat, 23 Apr 2005 16:43:45 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 1361E30E89; Sat, 23 Apr 2005 21:42:29 +0200 (MET DST) From: geert.pille@vandemoortele.com (Gerard H. Pille) X-Newsgroups: pgsql.interfaces.odbc Subject: retrieving images stored by php / pgsql Date: 23 Apr 2005 12:43:45 -0700 Organization: http://groups.google.com Lines: 14 Message-ID: <41b04c0d.0504231143.49fd929f@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/135 X-Sequence-Number: 5294 Hallo, I have stored images (gif, jpeg, png and others) in a bytea column using pg_escape_bytea ( file_get_contents (...)). Now I would like to retrieve (and show) these images, but using unixODBC. I have no problem retrieving them using pgsql, but the images are damaged when I try to do it with odbc. What would be the correct way, if it is at all possible? Thanks, Gerard