怎么样上传文件点上传时解析为二进制流,麻烦写一下关键的代码!
解决方案 »
- 求指点迷津
- hibernate不支持-1做查询条件吗,强人解答
- org.apache.catalina.core.StandardWrapperValve invoke
- 转发的问题
- ++++++++
- 有什么方法可以在底层的类代码中获取运行服务器的IP和端口号?
- 关于STRUTS乱码的问题
- 郁闷。。接口问题。我太菜了。。
- 用weblogic开发ejb的问题?: Could not obtain an exclusive lock to the embedded LDAP data files directory
- 你是ejb高手吗?是,请进
- 在ibatis中为什么要加上这些代码?
- 关于数据库里面的varbinary(8000)字段的问题?
String filePath = System.currentTimeMillis() + "_" + name;
item.write(new File(uploadDir, filePath)); Upload upload = new Upload();//这一行报错请问这里应该new什么?
upload.setFileName(name);
upload.setFilePath("upload/" + filePath);
upload.setFileSize(size);
upload.setAddDate(new Date()); List.add(upload);
}
String filePath = System.currentTimeMillis() + "_" + name;
item.write(new File(uploadDir, filePath)); Upload upload = new Upload();//这一行报错请问这里应该new什么?
upload.setFileName(name);
upload.setFilePath("upload/" + filePath);
upload.setFileSize(size);
upload.setAddDate(new Date()); List.add(upload);
}
没用过噢不能new,找找看有没有getInstance()方法或者其他带参数的构造方法