代码如下:
String url = "***.*****.com/5f8fab17ef564624384c6.jpg";
url = url + "?imageView2/2/w/800|saveas/" +
UrlSafeBase64.encodeToString("myBucket:5f8fab17ef564624384c6hh.jpg");
Auth auth = Auth.create("***", "***");
String sign = auth.sign(url);
String finalUrl = url + "/sign/" + sign;
System.out.println(finalUrl);
试了网上的demo和自己写的demo,一直报错 verify the sign fail。求解答!!!
整个报错参数是生成 sign 参数的时候错了,运行就会报错 verify the sign fail,java可以参考一下:https://github.com/qiniu/java...