JAVA uses ImageIO to write pictures. Has it been torn? have the bosses encountered it?

File file = new File(folderPath + "\\" + fileName);
ImageIO.write(ImageIO.read(new URL(attr)), fileType, file);

I used 20 threads to call this code, which occupied the full downstream bandwidth. There was a picture tearing problem when downloading pictures in batches
but there was nothing wrong with the program when writing this abnormal picture

.

the probability of having a problem is small, and it feels like it has not been downloaded completely. What is the cause of this and how to solve it

Mar.20,2021
Menu