Getting file name from BufferedImage

Is there a way to get the file name from BufferedImage? I do not seem to see any methods for this.

+3
source share
2 answers

A BufferedImage does not have to be supported by the file. It can be an array of bytes in the database or even supported by the stream.

+4
source

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

+3
source

Source: https://habr.com/ru/post/1783782/


All Articles