简体   繁体   中英

Getting filename from BufferedImage

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

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM