Re: Can I store Ms-Word document in a table. - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Can I store Ms-Word document in a table.
Date
Msg-id Pine.LNX.4.33.0401220126080.31770-100000@leary.csoft.net
Whole thread Raw
In response to Can I store Ms-Word document in a table.  (Nilesh Ghone <ghone_nilesh@sutra.co.jp>)
List 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


pgsql-jdbc by date:

Previous
From: Nilesh Ghone
Date:
Subject: Can I store Ms-Word document in a table.
Next
From: Vámos Balázs
Date:
Subject: Re: Lost connection after postgres restarted