0 Replies Latest reply on Apr 16, 2018 6:01 AM by vdhim23

    Compare Sizes Of Assets

    vdhim23 Level 1

      Hi,

       

      I want to compare the size of asset as below :

       

      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,