Re: Can I store Ms-Word document in a table.

From: Kris Jurka <books(at)ejurka(dot)com>
To: Nilesh Ghone <ghone_nilesh(at)sutra(dot)co(dot)jp>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Can I store Ms-Word document in a table.
Date: 2004-01-22 06:27:26
Message-ID: Pine.LNX.4.33.0401220126080.31770-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 22 Jan 2004, Nilesh Ghone wrote:

> I want to store ms-word documents (size may be up to 50 KB) in my
> postgreSQL database. Can I?
> If possible which datatype I have to use for it? Pls. assist I am a novice
> user for postgreSQL.

The easiest way to do this is to use the bytea data type and the
PreparedStatement.setBytes() and ResultSet.getBytes() to store and
retrieve the documents.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vámos Balázs 2004-01-22 08:52:36 Re: Lost connection after postgres restarted
Previous Message Nilesh Ghone 2004-01-22 06:06:15 Can I store Ms-Word document in a table.