pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ellis@spinics.net
To: pgsql-php@postgresql.org
Subject: Re: pg_[un]escape_bytea, pgsql 8.2.1, php 5.1.6, Linux
Date: Fri, 02 Feb 2007 05:32:59 -0000
Message-ID: <1170394379.757745@no.spam> (raw)
References: <302670f20702011827x28d9a689m388b2c8a703f31af@mail.gmail.com>

In article <302670f20702011827x28d9a689m388b2c8a703f31af@mail.gmail.com>,
Gary Chambers <gwchamb@gmail.com> wrote:

>I have inserted (via pg_query_params) into a bytea field some
>binary data (a JPEG image in this case) which I have escaped
>using pg_escape_bytea.

I just use a text field and base64 encode the image. It works great.

--
http://yosemitephotos.net/



view thread (10+ messages)  latest in thread

Message-ID: <1170394379.757745@no.spam>
Permalink:  ../1170394379.757745@no.spam/
Also on:    postgresql.org/message-id/1170394379.757745@no.spam

 · 

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-php@postgresql.org
  Cc: ellis@spinics.net
  Subject: Re: pg_[un]escape_bytea, pgsql 8.2.1, php 5.1.6, Linux
  In-Reply-To: <1170394379.757745@no.spam>
  References: <302670f20702011827x28d9a689m388b2c8a703f31af@mail.gmail.com> <1170394379.757745@no.spam>

* 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