如何获取OSS文件的访问地址
管理员您好,请问如何修改权限?
我们用OssSample运行结果总是只传了一个0kb文件上来,打开里面显示“OSS Sample”
麻烦您帮我们看下,这是我们的运行结果
----- IsBucketExist -----
false
----- CreateBucket -----
Success
----- PutObjectWithData ------
Success
----- !GetObjectWithIfMatch ------
Success
<?xml version="1.0" ?>
<Error>
<Code>
PreconditionFailed
</Code>
<Message>
At least one of the pre-conditions you specified did not hold.
</Message>
<Condition>
If-Match
</Condition>
<RequestId>
7c29c02f-6223-c401-4a54-37220933bf43
</RequestId>
<HostId>
storage.aliyun.com
</HostId>
</Error>
----- 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