Hi please try this it worked for me
Map<String, Object> param = new HashMap<>();param.put(ResourceResolverFactory.SUBSERVICE, "aemuser");ResourceResolver resolver = resolverFactory.getServiceResourceResolver(param);
String imageUrl = "https://lh4.googleusercontent.com/cjh5t_mnSYuW_RnVI922M9kjxW8leJG...