Skip to content

DefaultLobHandler should honour "wrapAsLob" for getting data too [SPR-5376] #10049

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions