Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding Blob mapping #800

Open
shirishpandharikar opened this issue Jun 8, 2022 · 0 comments
Open

Question regarding Blob mapping #800

shirishpandharikar opened this issue Jun 8, 2022 · 0 comments

Comments

@shirishpandharikar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant