search

Home  >  Q&A  >  body text

java - 七牛云BucketManager fetch的时候能指定转码策略吗

如题
现在用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();
    }
PHPzPHPz2803 days ago815

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-17 17:26:30

    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

    reply
    0
  • Cancelreply