How to convert a string to bytea?

From: "Chris Hoover" <revoohc(at)gmail(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: How to convert a string to bytea?
Date: 2006-08-30 16:22:18
Message-ID: 1d219a6f0608300922s5c85649ci4ebfb8564fc5eacb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

I am in need of some help. I need to use the encode function against a text
string in one of my pg/plsql functions. However, the encode function
expects a bytea field to be passed to it. How do I convert my text string
into a bytea?

Thanks,

Chris

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Hoover 2006-08-30 16:22:47 Fwd: How to convert a string to bytea?
Previous Message Nigel Bishop 2006-08-30 14:00:58 Re: Some advice required please

Browse pgsql-general by date

  From Date Subject
Next Message Chris Hoover 2006-08-30 16:22:47 Fwd: How to convert a string to bytea?
Previous Message Yonatan Ben-Nes 2006-08-30 16:09:19 Tsearch2 & Hebrew