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

孤人 提交于 2020-06-29 06:41:13

问题


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 :

https://www.tutorialspoint.com/How-to-convert-Byte-Array-to-Image-in-java

But for some image files the created new image file is rotated upside down. Majority of the images works fine.

And also created new images size are increased compared to the source image. What i am missing here ?

来源:https://stackoverflow.com/questions/62473381/java-byte-array-to-image-file-creation-results-a-rotated-upside-down-image-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!