您的位置:首页 > 其它

jdbc hibernate ibatis 操作Blob 和Clob类型字段(不断更新)

2010-12-14 16:53 716 查看
Class TestPhoto{

private Blob image;

private String cretateDate;

get()... set()... 方法

}

hibernate Blob 数据写入

FileInputStream img = new FileInputStream("d://test.jpg");
Blob img = (Blob) Hibernate.createBlob(img);
TestPhoto po=new TestPhoto();

po.setImage(img);

getSession().save(blobtest);

过两天把jdbc和ibatis的写入和读出加上
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: