I have a custom rendition created for jpeg image in AEM and programmatically I am trying to get that rendition as a stream.
I can see this rendition exist in the image node, but when I try to get it as input steam , I get null pointer exception.
final Asset asset = DamUtil.resolveToAsset(resource)...