Re: Display Bytea field - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Display Bytea field
Date
Msg-id bd445dc6-4a71-42e2-b176-f32abe4f5c9c@aklaver.com
Whole thread Raw
In response to Re: Display Bytea field  (Andy Hartman <hartman60home@gmail.com>)
List 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 by date:

Previous
From: thiemo@gelassene-pferde.biz
Date:
Subject: Re: Display Bytea field
Next
From: Jayadevan M
Date:
Subject: Parameter - shared_memory_size