4.17团队和个人第五次冲刺
团队博客
整个项目预期的任务量:30h 已用13h
任务看板照片

团队照片

燃尽图

4.产品状态
进行了文件上传的功能开发

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
ServletInputStream inputStream = request.getInputStream();
FileOutputStream fileOutputStream=new FileOutputStream("F://"+"qiao.pdf");
个人冲刺
昨天完成了文本信息的添加,但接收pdf文件时和发送pdf文件时遇到了困
今天解决pdf网页发送和pdf后端接受的问题
通过网上查阅资料,ajax和html自带的文件上传有所不同,所以选择了网站上html上传文件
<el-tab-pane label="pdf录入">
<form id="upload-form" action="TestServlet" method="post" enctype="multipart/form-data" >
<input type="file" id="upload" name="upload" />
<br />
<input type="submit" value="Upload" />
</form>
</el-tab-pane>
然后从后台接受时有所困难,但通过二进制数据来进行存储,通过request对象的方法解决了
首先导入maven插件,io
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
后可以通过几行简单的代码实现了,然后通过流的形式读取
ServletInputStream inputStream = request.getInputStream(); FileOutputStream fileOutputStream=new FileOutputStream("F://"+"qiao.pdf");
今天解决了昨天遗留的问题

浙公网安备 33010602011771号