类 FastDFSClient
java.lang.Object
io.github.mangocrisp.spring.taybct.tool.file.config.FastDFSClient
@AutoConfiguration
@EnableConfigurationProperties(FastDFSConfig.class)
public class FastDFSClient
extends Object
配置 FastDFS 客户端,用于操作 FastDF 接口
- 从以下版本开始:
- 1.0.0
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
byte[]
<T> T
downloadBase64
(String storageCode) upload
(InputStream inputStream, long fileSize, String extName)
-
构造器详细资料
-
FastDFSClient
public FastDFSClient(com.github.tobato.fastdfs.service.DefaultFastFileStorageClient client)
-
-
方法详细资料
-
download
-
downloadBase64
-
download
public <T> T download(String code, com.github.tobato.fastdfs.domain.proto.storage.DownloadCallback<T> callback) -
upload
- 抛出:
IOException
-
upload
- 抛出:
IOException
-
upload
- 抛出:
IOException
-
upload
-
delete
-