pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: beyaNet Consultancy <beyanet@ntlworld.com>
To: pgsql-sql@postgresql.org
Subject: bytea or blobs?
Date: Wed, 11 Feb 2004 13:05:04 +0000
Message-ID: <E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.com> (raw)

Hi,
what I am trying to do is to be able to store images in my database. 
What I wanted to know is this:

1. Would it be better to have the image field type as a bytea or a 
blob? I have heard it mentioned that bytea would be better as doing 
data dumps would also insure that the image was saved as well!

2. Would it be better to make reference to mp3 files (i.e. storing the 
address of the image /images/*.jpg)  or is it feasible to store the mp3 
in the database as bytea or blobs as well?

many thanks in adavance




view thread (14+ messages)  latest in thread

Message-ID: <E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.com>
Permalink:  ../E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.com/
Also on:    postgresql.org/message-id/E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.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-sql@postgresql.org
  Cc: beyanet@ntlworld.com
  Subject: Re: bytea or blobs?
  In-Reply-To: <E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.com>
  References: <E8D7DFA4-5C92-11D8-B55E-0003938366A4@ntlworld.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