How to get date picture created in java

后端 未结 5 2427
青春惊慌失措
青春惊慌失措 2021-02-20 16:26

I would like to extract the date a jpg file was created. Java has the lastModified method for the File object, but appears to provide no support for extracting the created date

5条回答
  •  情歌与酒
    2021-02-20 17:19

    The information is stored within the image in a format called EXIF or link text. There several libraries out there capable of reading this format, like this one

提交回复
热议问题