|
@@ -158,7 +158,7 @@ public class RwdeditVersionService {
|
|
|
|
|
|
OutputStream out = null;
|
|
|
try {
|
|
|
- InputStream stream = getStream(sqlList);
|
|
|
+ ByteArrayInputStream stream = getStream(sqlList);
|
|
|
resp.reset();// 清空输出流
|
|
|
String resultFileName = URLEncoder.encode(fileName, "UTF-8");
|
|
|
resp.setCharacterEncoding("UTF-8");
|
|
@@ -186,7 +186,7 @@ public class RwdeditVersionService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public InputStream getStream(List<String> list) throws IOException {
|
|
|
+ public ByteArrayInputStream getStream(List<String> list) throws IOException {
|
|
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
|
|
DataOutputStream out = new DataOutputStream(baos);
|
|
|
for (String sql : list) {
|