How to get date picture created in java

后端 未结 5 2429
青春惊慌失措
青春惊慌失措 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:25

    The date is stored in the EXIF data in the jpeg. There's a java library and a viewer in java that might be helpful.

提交回复
热议问题