- 浏览: 32874 次
- 性别:
- 来自: 沈阳
-
最新评论
文章列表
ZipOutputStream out = null;
FileInputStream in = null;
int b;
try {
out = new ZipOutputStream(new FileOutputStream(zipName + ".zip"));
out.putNextEntry(new ZipEntry(sourceFileName));
in = new FileInputStream(souceFile);
byte[] by = new byte[1024];
while ((b = in.read(by ...
D:\Program Files\FlashPaper2.2\FlashPrinter.exe -o D:\workspace\KMS\WebRoot\file\temp\upload\data\333.swf D:\workspace\KMS\WebRoot\file\temp\upload\data\222.docx
先安装FlashPaper,执行进程命令就可以转换文档了
/**
* 读取word2003
*/
public String readExtDocContent(String fileName){
// 创建输入流读取DOC文件
InputStream in = null;
WordExtractor extractor = null;
String text = null;
try {
in = new FileInputStream(new File(fileName));
extractor = new WordExtractor(in);
text = extractor.getTe ...
JSP代码
$(document).ready(function() {
[/align][align=left]$.excelUploadify("#upload", "information", "上传文件");
});
$.extend({
excelUploadify : function (obj, importType, buttonText) {
$(obj).uploadify({
'uploader' : "js/uploadify/uploadify.swf",
...
public void appendIndex(TInformationBmsVO informationVO, String path) throws IOException {
String indexFile = path + "file\\temp\\upload\\data\\index";
String scourceFile = path + informationVO.getFFilepathInformation();
String fileContent = "";
IndexWriter writer=null; ...