I am having a java class with one of its attribute:
private byte[] file;
When I upload a image it stores itself in my PostgreSQL database as bytea
data (and other attributes stores themselves successfully as well). When I retrieve my entity from DB, everything is retrieved perfectly except the file byte[]
is always null (byte data seems not to be retrieved at all).
Any ideas?
Edit: I tried @Lob annotation - did not help.