同时,我将多个文件上传到 s3,如下所示:
public void put(String path, final BufferedImage ... images) {
for(int i = 0; i < images.length; i++) {
final BufferedImage image = images[i];
fileMapper.write(NAMESPACE, new String[] { path, Integer.toString(i) + ".png" }, new FileMapper.Writer() {
@Override
public void write(OutputStream out) throws IOException {
ImageIO.write(image, "png", out);
}
});
}
}
我想通过使用多个线程(同时几个图像)上传它。有人可以帮助我并指导我该怎么做吗?