Progr1mmer hace 6 años
padre
commit
db138acb7d

+ 1 - 3
fastdfs-starter/src/main/java/com/yihu/fastdfs/FastDFSUtil.java

@ -43,10 +43,8 @@ public class FastDFSUtil {
    private FastDFSConfig fastDFSConfig;
    public ObjectNode upload(byte[] fileBuffer, String fileExtension, String description) throws Exception {
        NameValuePair[] fileMetaData = new NameValuePair[1];
        fileMetaData[0] = new NameValuePair("description", description == null ? "" : description);
        InputStream inputStream = new ByteArrayInputStream(fileBuffer);
        return upload(inputStream, fileExtension, fileMetaData);
        return upload(inputStream, fileExtension, description);
    }
    public ObjectNode upload(InputStream in, String fileExtension, String description) throws IOException, MyException, NoSuchAlgorithmException{