I've written a web application using core service which helps in getting the list of multimedia content along with the other info. My XML looks like below:

<tcm:Item ID="tcm:76-13941" Title=" ABC JPG" 
          Icon="T16L0P0Mjpg" Type="16" FromPub="Global Content" 
          IsNew="false" Modified="2015-11-03T19:37:30" 
          Size="2928" SchemaId="tcm:76-491-8" 
          WebDavUrl="\070 US\Building Blocks\Content\Multimedia\images\Author\ABC JPG" 
          BinaryName="ABC.jpg" >

Now I want to get the dimensions of the image. Unfortunately this info is not provided via metadata as part of mmc's Schema. So I have to probably get this from the physical file on webdav, if so should I use GetExternalBinaryContentData?

Env: 2013 Hr1

  • "my xml looks like below": xml is missing, please add. Also please suggest your requirement of why do you want to create application using webdav?
    – Hiren Kaku
    Commented May 25, 2016 at 21:14
  • @Bart, thank you for taking care of the xml..
    – Harish A
    Commented May 26, 2016 at 13:03
  • That was Dominic Cronin before me actually ;) Commented May 26, 2016 at 13:09

1 Answer 1


I would suggest writing an event handler that captures the dimensions when the component is saved. You can choose to put this in a metadata field (if it makes sense to have the data visible to, or possibly altered by, the content people). Alternatively - if your core service application is the only user of the data, you might prefer to add it to the Application Data of the component. Then your application can just read it out.

If it's really necessary to do this via the core service (for example, to obtain the dimensions of existing items), then you can probably use IStreamDownload2013.DownloadBinaryContent

  • Writing an event handler/application data is a good option (which i already thought off, along with the MMC schema changes), but that will help only new ones.. There are like a zillion images already :( uploaded.. may be i have to let business know that its not possible with existing ones.
    – Harish A
    Commented May 26, 2016 at 13:07
  • I've updated my answer Commented May 26, 2016 at 15:10
  • This looks like a good solution to read a single component.. in my case its a list of MM components thus, will be resource intensive. I will push my business to start inputing this data in meta.. Thanks everyone for your help..
    – Harish A
    Commented May 27, 2016 at 14:53
  • You should also consider using both approaches. Events system as the main mechanism, but using a script to process all the existing components and add the data. Commented May 29, 2016 at 17:23
  • Yup, thank Dominic
    – Harish A
    Commented May 31, 2016 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.