Skip site navigation (1) Skip section navigation (2)

Re: pg_[un]escape_bytea, pgsql 8.2.1, php 5.1.6, Linux

From: ellis(at)spinics(dot)net
To: pgsql-php(at)postgresql(dot)org
Subject: Re: pg_[un]escape_bytea, pgsql 8.2.1, php 5.1.6, Linux
Date: 2007-02-02 05:32:59
Message-ID: 1170394379.757745@no.spam (view raw or flat)
Thread:
Lists: pgsql-php
In article <302670f20702011827x28d9a689m388b2c8a703f31af(at)mail(dot)gmail(dot)com>,
Gary Chambers <gwchamb(at)gmail(dot)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/

In response to

pgsql-php by date

Next:From: Karthikeyan SundaramDate: 2007-02-02 19:51:50
Subject: Question regarding multibyte.
Previous:From: Gary ChambersDate: 2007-02-02 02:27:23
Subject: pg_[un]escape_bytea, pgsql 8.2.1, php 5.1.6, Linux

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group