Bladeren bron

通用组件

Progr1mmer 6 jaren geleden
bovenliggende
commit
db138acb7d
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      fastdfs-starter/src/main/java/com/yihu/fastdfs/FastDFSUtil.java

+ 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{