Cam.getमेटाडेटा
फ़ाइल के यूआरआई के आधार पर मेटाडेटा दिखाता है. इमेज हेडर
यह Exif और XMP फ़ील्ड की सूची बनाता है. इस निर्देश को एपीआई लेवल 2 में बंद कर दिया गया था.
पैरामीटर
- fileUri: टारगेट फ़ाइल का यूआरआई. मैन्युफ़ैक्चरर यह तय करते हैं कि क्या
निरपेक्ष या सापेक्ष यूआरआई का इस्तेमाल करने के लिए: क्लाइंट इसे ओपेक आइडेंटिफ़ायर मान सकते हैं.
नतीजे
- मेटाडेटा: Exif (इसमें जीपीएस की जानकारी शामिल है), फ़ोटो स्फ़ीयर XMP
JSON फ़ॉर्मैट. इसमें इमेज या थंबनेल शामिल नहीं होता.
गड़बड़ियां
- पैरामीटर मौजूद नहीं है:
fileUri
मौजूद नहीं है.
- अमान्य पैरामीटर का नाम: इनपुट पैरामीटर के नाम की पहचान नहीं की जा सकी.
- invalidParameterValue: इनपुट पैरामीटर की पहचान हो गई है, लेकिन
वैल्यू अमान्य है; उदाहरण के लिए,
fileUri
मौजूद नहीं है या उसका डेटा
प्रकार गलत है.
कमांड I/O |
कमांड इनपुट |
{ "parameters": { "fileUri": "file URI" } } |
कमांड आउटपुट |
{ "results": { "exif": { ... "ImageWidth": 2000, "ImageLength": 1000, ... }, "xmp": { "ProjectionType": "equirectangular", "UsePanoramaViewer": true, ... } } } |
कमांड आउटपुट (गड़बड़ी) |
{ "error": { "code": "invalidParameterValue", "message": "Parameter fileUri doesn't exist." } } |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["Returns file metadata such as Exif and XMP data for a given file URI."],["This command is deprecated and was previously used in API level 2."],["Important parameters include the `fileUri`, which specifies the location of the target file."],["Potential errors encompass missing or invalid parameters, including an invalid or non-existent `fileUri`."],["The command output provides Exif and Photo Sphere XMP data in JSON format if successful."]]],["This command retrieves a file's metadata using its URI. It's deprecated in API level 2. Input requires a `fileUri`. The output provides Exif data (including GPS) and Photo Sphere XMP in JSON format, excluding the image itself. Possible errors include a missing or invalid `fileUri`, or an unrecognized parameter name. Example input shows providing a file URI, with successful output including `exif` and `xmp` fields, and error output shown when a file URI does not exist.\n"]]