Is there a way to get the filename from a BufferedImage? I don't seem to see any methods for it.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
A
BufferedImage
is not necessarily associated with a file. Just as you can read a String from a file, but there is nogetFilename()
method on String objects, there is no such method onBufferedImage
.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.