问题描述
这是我在 Java 中试过的一段代码
Blob blob = rs.getBlob("attach");
InputStream input = blob.getBinaryStream();
byte[] buffer = new byte[(int) blob.length()];
File file = new File("C://Home//abc.pdf");
FileOutputStream out = new FileOutputStream(file);
while (inputStream1.read(buffer) > 0) {
output.write(buffer);
}
output.close();
在 Ms-access 中存储为 OLE 对象的 Jpg 文件已被提取,但其他类型的文件已损坏。
Content content = OleUtil.parseBlob(blob.getBytes(1L,(int) blob.length())).getContent();
此代码能够获取 Ms-access 中 OLE Object 具有的数据类型。
请帮我解决这个问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)