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