Details
Description
I'm storing images (jpeg, png, etc.) in a byte-array column of a postgresql 9.0.4 database.
Spring Roo uses version 8.4-702.jdbc3 of the postgresql jdbc driver, which causes the retrieved BLOB values to be rendered by the servlet as hex-string!
All HTTP-response headers are correct (content-type, length). I was able to reproduce the problem even in a simple non-Roo setup (only using spring mvc 3.0.5).
Solution:
Changing the version in pom.xml to 9.0-801.jdbc4 solves the problem.
Attachments
Issue Links
- is related to
-
ROO-2650 Upgrade PostgreSQL driver to 9.0
-
- Resolved
-