agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Robert.Patrick@cs.cmu.edu
To: postgres@postgres.Berkeley.EDU
Subject: bytea data types
Date: Tue, 16 Aug 1994 20:19:56 -0400 (EDT)
Message-ID: <wiIJSg_00hMdAid31E@cs.cmu.edu> (raw)
In-Reply-To: <9408161741.AA07392@pv081c.vincent.iastate.edu>
References: <9408161741.AA07392@pv081c.vincent.iastate.edu>
Postgres has a built-in byte array type (bytea). My question is how do
I use this type? For example, let's say I have a small GIF file (or any
other binary data) that I want to store as a byte array.
create images (id =int4, contents=bytea)
append images (id=1234, contents=?????????)
What I really want to know is:
1.) What goes where the "??????????" are?
2.) If this can be done, is the big-endian, little-endian problem
handled by Postgres or do I have to do it myself?
Thanks,
Robert
--
+------------------------------------------------------------------------+
| Robert Patrick _/_/_/_/ _/ _/ _/_/_/_/ |
| n-dim Group _/ _/ _/ _/ _/ _/ |
| Engineering Design Research Center _/ _/ _/ _/ _/ _/ |
| Department of Chemical Engineering _/ _/ _/ _/ _/ _/ |
| Carnegie Mellon University _/_/_/_/ _/_/_/_/_/ _/_/_/_/ |
| Pittsburgh, PA 15213 _/ _/ _/ _/ _/ |
| Phone: (412)268-5215 _/ _/ _/ _/ _/ |
| Fax: (412)268-5229 _/ _/ _/ _/ _/ |
| rp2y+@eiger.edrc.cmu.edu _/ _/ _/ _/ _/ |
| rp2y+@andrew.cmu.edu |
| World Wide Web: http://paneer.ndim.edrc.cmu.edu:8888/~rp2y/Home.html |
+------------------------------------------------------------------------+
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
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 using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: Robert.Patrick@cs.cmu.edu
Subject: Re: bytea data types
In-Reply-To: <wiIJSg_00hMdAid31E@cs.cmu.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox