pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: geert.pille@vandemoortele.com
To: pgsql-odbc@postgresql.org
Subject: retrieving images stored by php / pgsql
Date: 23 Apr 2005 12:43:45 -0700
Message-ID: <41b04c0d.0504231143.49fd929f@posting.google.com> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <41b04c0d.0504231143.49fd929f@posting.google.com>
Permalink:  ../41b04c0d.0504231143.49fd929f@posting.google.com/
Also on:    postgresql.org/message-id/41b04c0d.0504231143.49fd929f@posting.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: geert.pille@vandemoortele.com
  Subject: Re: retrieving images stored by php / pgsql
  In-Reply-To: <41b04c0d.0504231143.49fd929f@posting.google.com>
  References: <41b04c0d.0504231143.49fd929f@posting.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox