Add hack for Atom asciidoc syntax highlighting bug

This commit is contained in:
Gary Russell
2018-06-19 14:52:44 -04:00
parent 7a6a5a13e7
commit 754885bc54

View File

@@ -232,7 +232,7 @@ public MessageHandler jdbcMessageHandler(DataSource dataSource) {
"INSERT INTO imagedb (image_name, content, description) VALUES (?, ?, ?)");
jdbcMessageHandler.setPreparedStatementSetter((ps, m) -> {
ps.setString(1, m.getHeaders().get(FileHeaders.FILENAME));
try (FileInputStream inputStream = new FileInputStream((File) m.getPayload())) {
try (FileInputStream inputStream = new FileInputStream((File) m.getPayload()); ) {
ps.setBlob(2, inputStream);
}
catch (Exception e) {