| От | Bill Moran |
|---|---|
| Тема | Re: Store base64 in database. Use bytea or text? |
| Дата | |
| Msg-id | 20110125173133.a28ad8ea.wmoran@potentialtech.com обсуждение исходный текст |
| Ответ на | Store base64 in database. Use bytea or text? (Andre Lopes <lopes80andre@gmail.com>) |
| Список | pgsql-general |
In response to Andre Lopes <lopes80andre@gmail.com>: > > I need to put some images on Base64 in a PostgreSQL database. Wich > type should I use and what is the difference between using bytea or > text to store Base64? bytea is overkill if you know for sure that the data will always be base64. Aside from that, I don't know of any particular advantage either way. Since the data isn't really text, your locale isn't really going to come into play (i.e., it's not like you're going to sort the data or anything). Since the data isn't binary, you won't have to worry about escaping anything. Personally, I'd use text. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера