Re: Display Bytea field

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Display Bytea field
Дата
Msg-id bd445dc6-4a71-42e2-b176-f32abe4f5c9c@aklaver.com
обсуждение исходный текст
Ответ на Re: Display Bytea field  (Andy Hartman <hartman60home@gmail.com>)
Список pgsql-general
On 1/9/25 12:17, Andy Hartman wrote:
> How thru a simple query can I make sure data matches and I can display it

What you are facing:

1) Bytea stores binary strings in the formats specified here:

https://www.postgresql.org/docs/current/datatype-binary.html

2) The database has no 'knowledge' of what those binary strings 
represent. They could be an image, a PDF, a spreadsheet file, etc.

3) To achieve what you want you need some sort of client code that can 
take the binary strings and convert them to the correct output. Then you 
can match and display.

> 
> On Thu, Jan 9, 2025 at 3:16 PM Andy Hartman <hartman60home@gmail.com 
> <mailto:hartman60home@gmail.com>> wrote:
> 
>     I have migrated over a Table from Mssql that had an Image column I
>     now have it in Postgres
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




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