我将MySQL换成了Oracle该怎样实现
@Test
public void testWriterBlob() throws Exception{
Students s=new Students(1,"张三丰","男",new Date(),"武当山");
//先获得照片文件
File f=new File("d:"+File.separator+"flower.jpg");
//获得照片文件的输入流
InputStream input=new FileInputStream(f);
//创建有个blob对象
Blob image=Hibernate.getLobCreator(session).createBlob(input, input.available());
//设置照片属性
s.setPicture(image);
session.save(s);
}