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

Jesse Eichar wrote:

> 1. Is the byte stream (or byte array) converted to bytea on the database
> side or on client before sending?  (My client is using the
> postgresql-74.213.jar).

You give the driver a byte[] (setBytes) or InputStream
(setBinaryStream); it does the rest. Old drivers such as build 213 will,
IIRC, convert this to a text representation internally before sending to
the backend; newer drivers will send the data directly without
conversion. But this is all transparent to the client.

-O



view thread (4+ messages)  latest in thread

Message-ID: <42827EBC.5070707@opencloud.com>
Permalink:  ../42827EBC.5070707@opencloud.com/
Also on:    postgresql.org/message-id/42827EBC.5070707@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: <42827EBC.5070707@opencloud.com>
  References: <1115843849.5221.28.camel@weasel> <42827EBC.5070707@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