Rest api enties not reading bytea columns from postgresql?

Hi,

We have a Postgresql DB.

We want to read all content from a table using Rest API with:
…/app/rest/entities/tablename

All columns with type bytea are not in the response.
Is there any trick to get them?

KR
Roland

what I found: I added @Lob to the column definition in the entity class.

the bytea column is not also delivered via rest api entities, but only if it is notEmpty
that causes an issue in the follow up coding I have…
Why is that column not delivered as: “image”: “” ?

I handle that in the coding now, but the question is still, why it is not delivered when isEmpty

Hi

you can find the explanation and possible solutions in docs: Load Entities :: Jmix Documentation

wbr, Aleksey

1 Like