1. btye[]转blob
byte[] bs = ...
Blob blob = conn.createBlob();
blob.setBytes(1, bs);
ps.setBlob(2, blob);
2. blob转byte[]
Blob b = resultSet.getBlob(metaData.getColumnLabel(2));
byte[] bytes = b.getBytes(1, (int)b.length());
1. btye[]转blob
byte[] bs = ...
Blob blob = conn.createBlob();
blob.setBytes(1, bs);
ps.setBlob(2, blob);
2. blob转byte[]
Blob b = resultSet.getBlob(metaData.getColumnLabel(2));
byte[] bytes = b.getBytes(1, (int)b.length());
加密:为你的长字符串提供最高级别的保护!!!
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M