public class FastDfsServiceImpl extends Object implements DfsService
Constructor and Description |
---|
FastDfsServiceImpl() |
public String upload(byte[] fileBytes, String suffix)
DfsService
upload
in interface DfsService
fileBytes
- 文件字节码suffix
- 文件后缀public String upload(File file)
DfsService
upload
in interface DfsService
file
- 要上传的文件public String getUrl(String filePath)
DfsService
getUrl
in interface DfsService
filePath
- 上传后返回的文件在服务器的路径public byte[] download(String filePath)
DfsService
download
in interface DfsService
filePath
- 上传后返回的文件在服务器的路径public boolean delete(String filePath)
DfsService
delete
in interface DfsService
filePath
- 上传后返回的文件在服务器的路径Copyright © 2018 lodsve. All rights reserved.