Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all articles
Browse latest Browse all 12476

Retrieving size of DAM Asset

$
0
0

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!


Viewing all articles
Browse latest Browse all 12476

Trending Articles