2 Replies Latest reply on Jan 23, 2013 6:18 AM by reusr1

    Retrieving size of DAM Asset


      I'm trying to get the size (in this case it's 30 KB but it could be whatever) of an asset from the CQ5 DAM. I've written code like this below that gives me the title



      Resource rsc = resourceResolver.getResource(damLink +"/jcr:content/metadata");

                  if (rsc != null)


                      ValueMap damVmap = ResourceUtil.getValueMap(rsc);

                      String title = damVmap.get("dc:title", "");




      But I can't seem to find the size stored in either the asset itself, its jcr:content, metadata, or rendition. Am I missing something or does CQ5 not support this? Thanks in advance for your help!