java110
2020-05-17 3dee4f5487f0f6378cd73b8742d5c4c1d695d802
优化调试内容 图片有的显示有点不显示问题
1个文件已修改
6 ■■■■ 已修改文件
CommonService/src/main/java/com/java110/common/smo/impl/FileInnerServiceSMOImpl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CommonService/src/main/java/com/java110/common/smo/impl/FileInnerServiceSMOImpl.java
@@ -66,7 +66,11 @@
                java110Properties.getFtpPort(), java110Properties.getFtpUserName(),
                java110Properties.getFtpUserPassword());
        try {
            OutputStream out = new FileOutputStream(new File("/home/hc/img/"+ UUID.randomUUID().toString()+".jpg"));
            File file = new File("/home/hc/img/"+ UUID.randomUUID().toString()+".jpg");
            if(!file.exists()){
                file.createNewFile();
            }
            OutputStream out = new FileOutputStream(file);
            out.write(fileImg);
        }catch (Exception e){
            e.printStackTrace();