文件名称:java zip into data base blob field
文件大小:2.91MB
文件格式:ZIP
更新时间:2015-08-27 08:32:44
zip
public void testLastFileInsertToDB(String path) { // get last file name by time String fileName = ""; try { fileName = InputStreamHelp.newInstance().getLastFilename(path); LogHelp.getLogger().debug("this file name is(" + fileName + ")"); } catch (Exception e) { e.printStackTrace(); } // file to zip and get zip name String outputName = ZipHelp.newInstance().fileToZip(path, fileName); // zip insert database DatabaseOperate.newInstance().insertToDBInputStream(path, outputName); }
【文件预览】:
test
----core()
--------XMLToDB.class(2KB)
----dao()
--------BaseDao.class(3KB)
--------imp()
----src()
--------package()
--------com()
--------log4j.properties(598B)
----bin()
--------com()
--------log4j.properties(598B)
----.classpath(487B)
----uitl()
--------ZipHelp.class(6KB)
--------OutputStreamHelp.class(2KB)
--------InputStreamHelp.class(3KB)
--------StringHelp.class(1KB)
----.settings()
--------org.eclipse.jdt.core.prefs(602B)
----.fatjar(331B)
----.project(380B)
----powercenter.log(74KB)
----test()
--------java()