现在的位置: 首页 > 综合 > 正文

save file as byte array to DB using jdbctemplate

2013年06月15日 ⁄ 综合 ⁄ 共 450字 ⁄ 字号 评论关闭

jt
                        .update(
                                "insert into mail_raw (message_id,content,mail_entity_id) values (?,?,?)",
                                new Object[]{mm.getMessageID(),
                                        new SqlLobValue(rawData),
                                        new Integer(mailEntityID)}, new int[]{
                                        Types.VARCHAR, Types.BLOB,
                                        Types.INTEGER});

抱歉!评论已关闭.