Can I store Ms-Word document in a table.

Поиск
Список
Период
Сортировка
Искать

Can I store Ms-Word document in a table.

От:
Nilesh Ghone <ghone_nilesh@sutra.co.jp>
Дата:
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.

Hope for assistence.

Regards,
Nilesh

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

От:
Kris Jurka <books@ejurka.com>
Дата:


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

FAQ