pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erick Bautista <erickbautista2000@gmail.com>
To: pgsql-ports@postgresql.org
Subject: Invalid Input Syntax for type Bytea
Date: Tue, 23 Aug 2005 19:18:21 +0800
Message-ID: <7be35168050823041881fee19@mail.gmail.com> (raw)

Good Evening!

Our team is currently porting from Oracle to PostGreSQL.  
For BLOBs in Oracle we used bytea datatype in PostGreSQL.  
Whenever we insert a binary data in the DB, we get 'Invalid Input
Syntax for type Bytea'.  I understand that we need to use
PQescapeBytea before putting the binary string in the SQL statement,
however, the same error appears even if we use it.

Can somebody give us some advise on how to properly insert Bytea data
in PostGreSQL.

By the way, we are using ECPG. 

Thank you!

-- 
Erick



Message-ID: <7be35168050823041881fee19@mail.gmail.com>
Permalink:  ../7be35168050823041881fee19@mail.gmail.com/
Also on:    postgresql.org/message-id/7be35168050823041881fee19@mail.gmail.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-ports@postgresql.org
  Cc: erickbautista2000@gmail.com
  Subject: Re: Invalid Input Syntax for type Bytea
  In-Reply-To: <7be35168050823041881fee19@mail.gmail.com>
  References: <7be35168050823041881fee19@mail.gmail.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