Load PostGIS Layer with BLOB and use the form widget for binary fields (QGIS 3.6) not working
QGIS (as of version 3.8.0) has no support for binary/bytea fields from Postgres sources. As of version 3.8, they are only supported for disk-based vector layers and in-memory scratch layers.