Skip to Content
Menu
This question has been flagged
1 Reply
1623 Views

Hi all,


I add a photo on my module created on Odoo with a binary field. How can I visualize it on PostgreSQL like a columns of my table?

Example:

Name  Surname  Image
x                y               *image*


Thanks.

Avatar
Discard
Best Answer

Hi,


I am not sure but may be it works in PGADMIN.

SELECT encode(blobdata::bytea, 'escape') FROM table as o where o.blobdata != ''

where

  1. blobdata is the bytea column (blob)
  2. "table" is the table that contains the column blobdata
Avatar
Discard