同时,我正在将多个文件上传到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);
}
});
}
}
我想通过使用多个线程(同时多个图像)上传它。有人可以帮助我并指导我如何做到这一点?
答案 0 :(得分:0)