Java Byte array to image file creation results a rotated upside down image file

这一生的挚爱 提交于 2020-06-29 06:41:14
问题 I am just reading an image file as byte array and writing it in another directory as image file using BufferedImage like shown in the link : But for some image files the created new image file is rotated upside down.