提交 1e808df7 编写于 作者: C chenjianxing

Merge branch 'master' of https://github.com/metersphere/server

...@@ -332,7 +332,7 @@ public class TestCaseService { ...@@ -332,7 +332,7 @@ public class TestCaseService {
// 发送给客户端的数据 // 发送给客户端的数据
byte[] buff = new byte[1024]; byte[] buff = new byte[1024];
try (OutputStream outputStream = res.getOutputStream(); try (OutputStream outputStream = res.getOutputStream();
BufferedInputStream bis = new BufferedInputStream(this.getClass().getResourceAsStream("/template/testcase.xmind"));) { BufferedInputStream bis = new BufferedInputStream(TestCaseService.class.getResourceAsStream("/io/metersphere/xmind/template/testcase.xml"));) {
int i = bis.read(buff); int i = bis.read(buff);
while (i != -1) { while (i != -1) {
outputStream.write(buff, 0, buff.length); outputStream.write(buff, 0, buff.length);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册