跳至內容
選單
此問題已被標幟
1 回覆
2035 瀏覽次數

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.

頭像
捨棄
最佳答案

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
頭像
捨棄