We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.xncoding.echarts.service.ApiService#saveBase64Pic ######原始代码 String destFile = p.getImageDir() + now + ".png"; out = new FileOutputStream(file); ######产生原因 文件路径不存在时 输出流输出到文件时会报错 ######更改建议 String destFile = p.getImageDir() + now + ".png"; File file = new File(destFile); if(!file.getParentFile().exists()){ file.getParentFile().mkdirs(); } out = new FileOutputStream(file);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
file reference
com.xncoding.echarts.service.ApiService#saveBase64Pic
######原始代码
String destFile = p.getImageDir() + now + ".png";
out = new FileOutputStream(file);
######产生原因
文件路径不存在时 输出流输出到文件时会报错
######更改建议
String destFile = p.getImageDir() + now + ".png";
File file = new File(destFile);
if(!file.getParentFile().exists()){
file.getParentFile().mkdirs();
}
out = new FileOutputStream(file);
issues提交时间 2020-06-03
The text was updated successfully, but these errors were encountered: