Get EXIF information in Java

https://github.com/drewnoakes/metadata-extractor/releases

		String fileName = "file/fortest/20160501-103139_IMG_1551.JPG";
		File imageFile = new File(fileName);

		Metadata md = ImageMetadataReader.readMetadata(imageFile);
		System.out.println(md.getFirstDirectoryOfType(ExifDirectoryBase.class).getDate(ExifDirectoryBase.TAG_DATETIME));

The result is as follows.

Sun May 01 19:31:39 JST 2016

Recommended Posts

Get EXIF information in Java
Library "OSHI" to get system information in Java
[Java] Get KClass in Java [Kotlin]
Get Null-safe Map values in Java
Get stuck in a Java primer
[Java] Get date information 10 days later using milliseconds in the Date class
Get the result of POST in Java
Partization in Java
Get caller information from stack trace (java)
Changes in Java 11
Rock-paper-scissors in Java
[Java] Get tag information from music files
How to get the date in java
Get history from Zabbix server in Java
Pi in Java
FizzBuzz in Java
Get contextual information such as HttpServletRequest in Jersey
Create a CSR with extended information in Java
Get block information with Hyperledger Iroha's Java SDK
How to get Class from Element in Java
Get unixtime (seconds) from ZonedDateTime in Scala / Java
[Java] Get KFunction from Method / Constructor in Java [Kotlin]
Get along with Java containers in Cloud Run
[java] sort in list
Read JSON in Java
Interpreter implementation in Java
Get location information quickly
Rock-paper-scissors app in Java
Constraint programming in Java
Put java8 in centos7
NVL-ish guy in Java
Combine arrays in Java
[Java] Get miscellaneous dates
"Hello World" in Java
Callable Interface in Java
Comments in Java source
Azure functions in java
Format XML in Java
Simple htmlspecialchars in Java
Boyer-Moore implementation in Java
Hello World in Java
Use OpenCV in Java
webApi memorandum in java
Type determination in Java
Ping commands in Java
[Java] Initialize, add, get
Various threads in java
Heapsort implementation (in java)
Zabbix API in Java
ASCII art in Java
Compare Lists in Java
POST JSON in Java
Express failure in Java
Create JSON in Java
Date manipulation in Java 8
What's new in Java 8
Get cookies in Spring
Use PreparedStatement in Java
What's new in Java 9,10,11
Parallel execution in Java
Initializing HashMap in Java