Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7431289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:16:22+00:00 2026-05-29T09:16:22+00:00

I am using coldfusion’s imageGetIPTCMetadata() function to get the iptc keywords. I used Photomechanics

  • 0

I am using coldfusion’s imageGetIPTCMetadata() function to get the iptc keywords.

I used Photomechanics to insert some keywords in a hierarchical fashion like this

Personnel   |   Appointments   |   Assistant Chief of General Staff (ACGS), Personnel  |  Ranks  |  Royal Marine  |  Colour Sergeant (CSgt), Personnel | Ranks | Royal Navy | Chief Petty Officer (CPO), Personnel|Ranks|Army|Field Marshall (Fd Marshall) (FM)

But after I call the method in my CFC I get this –

How can I get the keywords with a delimeter or something so that I can reuse them in my code.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:16:23+00:00Added an answer on May 29, 2026 at 9:16 am

    I found the solution here:

    <cfparam name="URL.source" default="xmp-asset.jpg">
    <cffile action="readbinary" file="#ExpandPath(URL.source)#" variable="data">
    <!-- encode the binary data to hex -->
    <cfset hex_data = BinaryEncode(data,"hex") />
    <!-- string indicating beginning of packet '<x:xmpmeta' -->
    <cfset xmp_string_begin = "3C783A786D706D657461" />
    <!-- string indicating end of packet '</x:xmpmeta>' -->
    <cfset xmp_string_end = "3C2F783A786D706D6574613E" />
    <!-- find the starting index in the hex string -->
    <cfset idx_start = FindNoCase(xmp_string_begin,hex_data) />
    <!-- find the ending index in the hex string -->
    <cfset idx_end = FindNoCase(xmp_string_end,hex_data,idx_start) + Len(xmp_string_end) />
    <!-- using the start and end indices, extract the xmp packet -->
    <cfset xmp_hex = Mid(hex_data,idx_start,Evaluate(idx_end-idx_start)) />
    <!-- convert the hex to readable characters -->
    <cfset xmp_string = ToString(BinaryDecode(xmp_hex,"hex")) />
    <!-- parse the xml string to and xml structure -->
    <cfset xmp_xml = XmlParse(xmp_string) />
    <cfcontent type="text/xml">
    <cfoutput>#xmp_string#</cfoutput>
    

    Now I can get the entire XMP xml and do all I want to do with the data there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an old CMS I built using Coldfusion. I would like to get
I am using ColdFusion 9.1.2 We are using a CFC to save some data
I'm using ColdFusion MX7 to perform a CFEXECUTE on some Java 6 code. Unfortunately,
I'm using ColdFusion with Microsoft SQL Server 2005 and on occasion I get this
I'm using coldfusion to insert the contents of a struct (key-value pairs) into a
Have a look at the following function in a CFC (I'm using ColdFusion 9).
I am using ColdFusion 8. Doing something like this: <cfheader name=content-disposition value=attachment; filename=abc.xlsx> <cfcontent
I am using ColdFusion 9.0.1 and some database that I cannot change. I am
I'm using ColdFusion to populate a template that includes HTML unordered lists ( <ul>
I'm using ColdFusion to return a result set from a SQL database and turn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.