io
布莱恩特别铁
方向盘指向南,一路不转弯
展开
-
文件拷贝,有多大拷贝多大
/** * 文件拷贝 * * @param src * @param dst * @throws IOException */ public static void fileCopy(File src, File dst) throws IOException { FileInputStream fi = n...原创 2019-08-27 15:09:46 · 189 阅读 · 0 评论 -
文件二进制转换
package com.yscredit.sz.util;import org.springframework.util.FileCopyUtils;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.InputStream;...原创 2019-08-29 18:17:48 · 1842 阅读 · 0 评论 -
从环境上导出文件
File file = new File(path); if (!file.exists()) { throw new AppException(new ErrorCode(ErrorEnum.RESOURCE_NOT_EXIST,"file is not exist!")); } response.setC...原创 2019-08-29 19:11:59 · 100 阅读 · 0 评论 -
java接受文件流
java 接受文件流1. 接受响应体:public class BinaryResponse { private Integer statusCode = null; private byte[] result = null; private boolean success = false; private Map<String, String>...原创 2019-08-30 10:01:41 · 6645 阅读 · 0 评论