aliyun / aliyun-oss-java-sdk

Aliyun OSS SDK for Java
1.22k stars 805 forks source link

使用oss筛选文件,ListObjectsRequest的prefix为中文情况下无法获取到文件信息解决办法 #515

Open simmongu opened 7 months ago

simmongu commented 7 months ago

OSSClient client = getClient(); ListObjectsRequest request = new ListObjectsRequest(); // 设置中文条件时未查询到相关数据信息 request.setPrefix("图片中文名"); request.setBucketName(ossConfig.getBucketName()); ObjectListing listing = client.listObjects(request);