org.nutz.dao.util.blob.SimpleBlob cannot be cast to oracle.sql.BLOB
oracle.sql.BLOB blob =(BLOB) s.getZp();
OutputStream outStream = blob.getBinaryOutputStream();
File file = new File(urlpath);
InputStream fin = new FileInputStream(file);
byte[] b = new byte[1024];
int len = 0;
while ((len = fin.read(b)) != -1) {
outStream.write(b, 0, len);
}
outStream.flush();
outStream.close();
fin.close();
file.delete();