Is there a way to get the filename from a BufferedImage? I don't seem to see any methods for it.
Asked
Active
Viewed 5,380 times
2 Answers
5
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.

Zeki
- 5,107
- 1
- 20
- 27
4
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
.

Laurence Gonsalves
- 137,896
- 35
- 246
- 299