|
@@ -743,11 +743,13 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
|
|
|
//minioParameter.setObjectName("test/ego.csv");
|
|
|
Response download = fileDownService.download(minioParameter);
|
|
|
Response.Body body = download.body();
|
|
|
- //fileInputStream = body.asInputStream();
|
|
|
- String path = ClassLoader.getSystemResource("").getPath() + StringUtil.getRandomCode() + "temp";
|
|
|
+ fileInputStream = body.asInputStream();
|
|
|
+
|
|
|
+ /*String path = "/temp" + StringUtil.getRandomCode();
|
|
|
FileUtil.writeInputStreamToLocalFile(body.asInputStream(),path);
|
|
|
file = new File(path);
|
|
|
- fileInputStream = new FileInputStream(file);
|
|
|
+ fileInputStream = new FileInputStream(file);*/
|
|
|
+
|
|
|
inputStreamReader = new InputStreamReader(fileInputStream,"utf-8");
|
|
|
|
|
|
bufferedReader = new BufferedReader(inputStreamReader);
|