Getting filename from BufferedImage

扶醉桌前 提交于 2020-01-24 05:21:24

问题


Is there a way to get the filename from a BufferedImage? I don't seem to see any methods for it.


回答1:


A BufferedImage doesn't necessarily have to be backed by a file. It could be a byte array in a database, or even backed by a stream.




回答2:


A BufferedImage is not necessarily associated with a file. Just as you can read a String from a file, but there is no getFilename() method on String objects, there is no such method on BufferedImage.



来源:https://stackoverflow.com/questions/4611303/getting-filename-from-bufferedimage

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