Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Hi,
I want to compare the size of asset as below :
AssetDetails asset = new AssetDetails(assetResource);if(asset.getSize() < 200KB) { // Do Something}
AssetDetails asset = new AssetDetails(assetResource);
if(asset.getSize() < 200KB) {
// Do Something
}
As size returns string, so can't use this syntax. Any idea to compare the size of assets in AEM?
Thanks,
Solved! Go to Solution.
asset.getOriginal.getsize() returns long, maybe that can help.
Asset API Asset ("The Adobe AEM Quickstart and Web Application.")
Rendition API Rendition ("The Adobe AEM Quickstart and Web Application.")
View solution in original post
Views
Likes
Replies