使用oss筛选文件,ListObjectsRequest的prefix为中文情况下无法获取到文件信息解决办法
simmongu opened this issue · 0 comments
simmongu commented
OSSClient client = getClient();
ListObjectsRequest request = new ListObjectsRequest();
// 设置中文条件时未查询到相关数据信息
request.setPrefix("图片中文名");
request.setBucketName(ossConfig.getBucketName());
ObjectListing listing = client.listObjects(request);