Re: Inserting an Encrypted file into DB

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Inserting an Encrypted file into DB
Дата
Msg-id 470CB73D.2020905@enterprisedb.com
обсуждение исходный текст
Ответ на Inserting an Encrypted file into DB  (Smita Vijayakumar <smita.vijayakumar@globallogic.com>)
Список pgsql-committers
Smita Vijayakumar wrote:
> I want to put into the postgres DB, a file which is an encrypted file
> (say, the PKCS# files).
> I have used a bytea column for storing this file. So the operations with
> regard to the file at my end are:
> Filesystem ----> DB ------> Filesystem
> What I need to know is:
> 1. Is there any information loss when the file is being transferred from
> the filesystem to the DB?

No.

> 2. If the answer is no, then does that mean that when the stream is
> received from the DB, the file is an exact copy of the file which
> existed? If so, the reverse key should be able to successfully decode
> the stream received from the DB.

Yes.

This is assuming we're talking about the contents of the file. Dealing
with any metadata like filename, creation timestamp etc is of course up
to the application as well.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

В списке pgsql-committers по дате отправления:

Предыдущее
От: Smita Vijayakumar
Дата:
Сообщение: Inserting an Encrypted file into DB
Следующее
От: mha@postgresql.org (Magnus Hagander)
Дата:
Сообщение: pgsql: Add missing codepage numbers for Windows.