| От | Chris Hoover |
|---|---|
| Тема | Best way to store files inside db |
| Дата | |
| Msg-id | 425D5180.6020109@sermonaudio.com обсуждение исходный текст |
| Ответы |
Re: Best way to store files inside db
|
| Список | pgsql-admin |
I am looking for some help/advice. We need to store some files inside postgres (at least it has been requested of us). What is the best way to do this? Right now, the files are all human readable text files, but that could change. I could store the contents of the human readable files in a text field, but I believe the requester would really like the real file to be stored as close to unmodified as possible. How can I do this? I am thinking to store unmodified, I'll have to use a bytea field. However, how do I tell the database to insert a file (say "c:\test.txt") into the table? Thanks for any help/pointer. Chris
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера