Get the image file (s) some informations, Including the Make, M

Source: Internet
Author: User

This is a blog about how to get the image file (s) some informations. Including the Make, Model, Date/Tiime, etc.

While, how can do it? I shoshould use a tool which name is:, Writed by Java, and now its version is 2.6.4.

And you can get more from. Or

How does it work?

While, I hava a demo and I will show the complete code to you.

                                                String LINE = "-"        String RIGHT_PARENTHESES = "]"                  main(String[] args)                            String[] pathNames =                 "C:/2013-02-08_12-24-54_100.jpg",                 "C:/20022013011.jpg",                 "C:/IMG_0018.JPG",                 "C:/IMG_0697.JPG",                  "C:/P1080402.JPG"          List<File> files =  ArrayList<File>                      File file =            List<Map<String, String>> imagesInfo =                   File file =  File("C:/IMG_0697.JPG"         Map<String, String> map =         System.out.println("##### the image file informations"                        printImagesInfo(List<Map<String, String>>         (!             (Map<String, String>                  System.out.println("======================================"                        HandleMap(Map<String, String>         Iterator<String> iterator =                      String name =             String value =                                 System.out.println(name + " : " +                       @SuppressWarnings("unchecked"       Map<String, String> getImageInfoOfExif(File jpegFile)          Metadata metadata =         Directory exifDirectory = metadata.getDirectory(ExifIFD0Directory.         Collection tags =         Iterator iterator =         Map<String, String> abstractsMap =  HashMap<String, String>                      Tag tag =             String[] tagArrays =             String[] abstracts = tagArrays[0             abstractsMap.put(abstracts[1].trim(), tagArrays[1                                       List<Map<String, String>> getImageInfoOfExif(List<File> files)          (files == )          List<Map<String, String>> list =  ArrayList<Map<String,String>>         (files.size() > 0                              Map<String, String> map =              }

Date/Time : 2013:02:08 12:24:537272======================================/300300======================================/7272======================================6.1.3/Time : 2013:06:27 23:31:19907272======================================1.00xc4a5) : [208/0xc6d3) : [128/Time : 2013:01:04 00:01:061800xc6d2) : [64180======================================6.1.3/Time : 2013:06:27 23:31:19907272

Then, you shoshould have a try!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.