Antoni Reus opened SPR-5376 and commented
"wrapAsLob" was added in #7007 to DefaultLobHandler to make it work with Postgresql BLOBs.
But this setting is only used for setBlobAsBytes/setBlobAsBinaryStream. So saving a byte[] field in a Postgresql BLOB works well.
But retrieving data doesn't work, it returns the "oid" number as a byte[].
Methods getBlobAsBytes and getBlobAsBinaryStream of DefaultLobHandler should use getBlob if wrapAsLob is set to true.
Affects: 2.5.6