Hi !!!
I'm on AEM as a cloud service. I can retrieve the asset but...
ResourceResolver rs = request.getResourceResolver();
Asset desktopImage = rs.getResource(srcFromImage).adaptTo(Asset.class);
How can I retrieve the asset properties of that file, such as title, description, etc.?
I tried with
desktopImage.getMetadataValue("dc:title")
//Cannot evaluate because of compilation error(s): The method getMetadataValue(String) is undefined for the type Asset.
Thanks!