If you upload image from device, image will be saved as a local copy to that component as a child node.
As image is a child resource (not a property with DAM reference as value), need to write login to get child image and render.
@Keerthi0555
If you want to iterate through all the resources then go with iterator.
If you want a specific resource(s) with specific property then search using query builder.
Depends on your use case.
@Keerthi0555
You missed single quote at the end of component path.
String queryString = "SELECT * FROM [nt:unstructured] AS node WHERE ISDESCENDANTNODE(node," +path+")"+ "AND [sling:resourceType] = 'apps/components/componentName'"
Running command prompt as admin will fix the build issue. If you don't have admin right in your system then set includeDispatcherConfig = n and run the command.
This is how we should get the header value in dispatcher.
%{HTTP:X-AEM-CLIENT-COUNTRY}
I was using like this %{HTTP_X-AEM-CLIENT-COUNTRY}, which didn't work.