com.qcloud.cos.demo.ci.BaseCosImageProcessDemo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos_api-bundle Show documentation
Show all versions of cos_api-bundle Show documentation
A single bundled dependency that includes all service and dependent JARs with third-party libraries
relocated to different namespaces.
package com.qcloud.cos.demo.ci;
import com.qcloud.cos.COSClient;
import com.qcloud.cos.model.ciModel.common.CImageProcessRequest;
public class BaseCosImageProcessDemo {
public static void main(String[] args) throws Exception {
// 1 初始化用户身份信息(secretId, secretKey)。
COSClient client = ClientUtils.getTestClient();
// 2 调用要使用的方法。
processImage(client);
}
public static void processImage(COSClient client){
String bucketName = "beijingtest-1251704708";
String key = "1.jpg";
CImageProcessRequest request = new CImageProcessRequest(bucketName,key);
request.setCiSpecialEndParameter("");
boolean ciUploadResult = client.processImage2(request);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy