asset metadata | Community
Skip to main content
yoni_hirsh
August 8, 2016
Solved

asset metadata

  • August 8, 2016
  • 1 reply
  • 2434 views

Hi,

Can anyone add a Java code snippet to retrieve asset metadata? I've been trying now for a few days to retrieve the description and tags, but no success. Title for some reason is easy and straight forward .getTitle(); , see code below:

Resource childImage = (Resource)childImagesItr.next(); ImageResource imgResource = new ImageResource(childImage);Image image = new Image(childImage); //media is an internally used classmedia = new MediaVariables();media.setImageSrc(imgResource.getSrc());media.setTitle(imgResource.getTitle());
media.setTitle(image.getTitle());

but description, although method exists, returns null, such as:

media.setDescription(image.getDescription());

or

media.setDescrioption(imgResource.getDescription());
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

shrotiAdobe EmployeeAccepted solution
Adobe Employee
November 22, 2016