修复文件压缩
This commit is contained in:
parent
85d6d8470c
commit
d41f15f3b7
@ -38,6 +38,7 @@ import org.springframework.validation.annotation.Validated;
|
||||
import javax.annotation.Resource;
|
||||
import java.io.*;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -236,7 +237,7 @@ public class DatasetServiceImpl implements DatasetService {
|
||||
if (connection != null) {
|
||||
try {
|
||||
InputStream inputStream = connection.getInputStream();
|
||||
ZipInputStream zipInputStream = new ZipInputStream(inputStream);
|
||||
ZipInputStream zipInputStream = new ZipInputStream(inputStream, Charset.forName("GBK"));
|
||||
ZipEntry zipEntry = null;
|
||||
try {
|
||||
while ((zipEntry = zipInputStream.getNextEntry()) != null ){
|
||||
|
Loading…
x
Reference in New Issue
Block a user