Skip to content

Question regarding Blob mapping #800

@shirishpandharikar

Description

@shirishpandharikar

I have a table with 2 fields id & data. The data is of Blob. I'm trying to use Rowmapper to map the Blob to a byte[]. How can this be achieved?

RowMapper<byte[]> rowMapper = JdbcTemplateMapperFactory .newInstance() .newRowMapper(byte[].class);
We are using this RowMapper with NamedParameterJdbcTemplate. The query which returns the Blob data looks like below:

SELECT data FROM table WHERE id = :id

Any help with this would be really appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions