Comments (2)
用这种方式不行吗?
其中fs_id
是group1/M00/00/4F/CggCLlqQy5KEcHehAAAAAIMEQIs083.zip
public static boolean deleteFile(String fs_id) throws MyException {
if (isEmpty(fs_id)) {
throw new MyException("删除文件fs_id不能为空!");
}
StorageClient1 client1 = new StorageClient1();
try {
int code = client1.delete_file1(fs_id);
if (code == 0) {
log.info("delete file success : " + fs_id);
return true;
}
log.info("delete file fail : " + fs_id + " error code : " + code);
} catch (IOException e) {
log.error(e.getMessage(),e);
} catch (MyException e) {
log.error(e.getMessage(),e);
}
throw new MyException("删除文件失败........");
}
是不是你的remote_filename
参数有问题
from fastdfs-client-java.
吐血推荐使用服务端负载均衡和高可用方案
from fastdfs-client-java.
Related Issues (20)
- 关于所有带有1的对象和原对象的问题 HOT 1
- 获取IP地址错误 HOT 2
- 获取storageServer 连接失败connect to server 127.0.0.1:23000 fail, emsg:Connection refused: connect HOT 1
- 麻烦作者把jar包推送到maven仓库吧,不然挺麻烦的 HOT 1
- 请问一下fastdfs client能否指定上传的目录呢? HOT 2
- 申请发布到 Maven **仓库
- TrackerClient.listStorages协议传参最大长度和服务端不太符合
- java.lang.ArrayIndexOutOfBoundsException: Input to decode not an even multiple of 4 characters; pad with =. HOT 1
- 已经被删除的文件但是get_file_info方法会返回数据
- Java整合问题
- 推送maven**仓库 HOT 4
- fastdfs集群分片上传问题 HOT 2
- 建议支持文件同步不完整时,下载请求可以自动回源重定向
- so terrible
- ProtoStructDecoder.java有不安全的操作
- 该如何获取某个组下的全部文件 HOT 3
- 【分享问题】upload方法如果通过available()获取文件大小值大于INT的最大值,将会发生越界异常 HOT 2
- StorageClient需要每次调用时创建吧 Test样例中有些误导 HOT 1
- fastdfs是否支持S3?
- fastdfs的Tracker和nginx的区别是什么? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdfs-client-java.