All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qcloud.cos.demo.ci.BaseCosImageProcessDemo Maven / Gradle / Ivy

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

There is a newer version: 5.6.228
Show newest version
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