java - 七牛云BucketManager fetch的时候能指定转码策略吗
PHPz
PHPz 2017-04-17 17:24:30
0
1
785

如题
现在用BucketManager的fetch方法直接从url把图片/语音资源传到七牛云上,能不能在上传的同时指定转码策略自动转码呢?
比如我要把语音都转成mp3格式的,可以直接设置吗

    Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY);
    BucketManager bucketManager = new BucketManager(auth);
    try {
        DefaultPutRet putret = bucketManager.fetch(originalUrl, BUCKET_NAME, "testaudio");
        System.out.println(putret.key);
        System.out.println("succeed upload audio");
    } catch (QiniuException e1) {
        e1.printStackTrace();
    }
PHPz
PHPz

学习是最好的投资!

reply all(1)
黄舟

You cannot directly perform the capture operation. You can only trigger the persistence operation after uploading to trigger the persistence demo
http://7xnonj.com2.z0.glb.qiniucdn.com/index.htm

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!