Open liguangze opened 6 years ago
Tiny.FileCompressOptions options = new Tiny.FileCompressOptions(); Tiny.getInstance().source("").batchAsFile().withOptions(options).batchCompress(new FileBatchCallback() { @Override public void callback(boolean isSuccess, String[] outfile) { //return the batch compressed file path } });
因为你的demo里面写的是数组,长度都固定了,我现在不知道用户要传几张,只能传集合,
@liguangze 可以集合转化为数组传进来
Tiny.FileCompressOptions options = new Tiny.FileCompressOptions(); Tiny.getInstance().source("").batchAsFile().withOptions(options).batchCompress(new FileBatchCallback() { @Override public void callback(boolean isSuccess, String[] outfile) { //return the batch compressed file path } });
因为你的demo里面写的是数组,长度都固定了,我现在不知道用户要传几张,只能传集合,