pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jesse <jeichar@refractions.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: bytea encoding
Date: Fri, 13 May 2005 09:46:11 +1200
Message-ID: <4283CEA3.8060101@opencloud.com> (raw)
In-Reply-To: <1115919119.4902.7.camel@weasel>
References: <1115843849.5221.28.camel@weasel>
	<42827EBC.5070707@opencloud.com>
	<1115919119.4902.7.camel@weasel>

Jesse wrote:

> Is there a way that I can use postgresql-74.213.jar (or more recent) to
> encode the file in bytea on the client side?  If no, do you know where I
> can get code to do that?

You do not need to "encode the file in bytea". Use setBytes() or
setBinaryStream() and the driver will do the rest.

-O



view thread (4+ messages)

Message-ID: <4283CEA3.8060101@opencloud.com>
Permalink:  ../4283CEA3.8060101@opencloud.com/
Also on:    postgresql.org/message-id/4283CEA3.8060101@opencloud.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-jdbc@postgresql.org
  Cc: oliver@opencloud.com, jeichar@refractions.net
  Subject: Re: bytea encoding
  In-Reply-To: <4283CEA3.8060101@opencloud.com>
  References: <1115843849.5221.28.camel@weasel> <42827EBC.5070707@opencloud.com> <1115919119.4902.7.camel@weasel> <4283CEA3.8060101@opencloud.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