如何获取OSS文件的访问地址
管理员您好,请问如何修改权限?
我们用OssSample运行结果总是只传了一个0kb文件上来,打开里面显示“OSS Sample”
麻烦您帮我们看下,这是我们的运行结果
----- IsBucketExist -----
false
----- CreateBucket -----
Success
----- PutObjectWithData ------
Success
----- !GetObjectWithIfMatch ------
Success
PreconditionFailed
At least one of the pre-conditions you specified did not hold.
If-Match
7c29c02f-6223-c401-4a54-37220933bf43
storage.aliyun.com
----- GettObjectWithIfMatch ------
Exception in thread 'main' java.lang.NullPointerException
at com.aliyun.oss.api.Utils.saveInputStreamToFile(Utils.java:182)
at com.aliyun.oss.api.OSSClient.getObjectToFile(OSSClient.java:669)
at OssSample.main(OssSample.java:146)
赞0
踩0