Hi Daniele, just an idea:
@Override
protected byte[] getImageData() {
String basePath = "upload/images/";
Object name = logoModel.getObject();
File file = new File(".", basePath + name);
LoggerFactory.getLogger(getClass()).info("serving file: " + file);
Hi all, I use a DynamicWebResource to display images previously uploaded by
user ion the context of my application. I have this DWR subclass:
class LogoResource extends DynamicImageResource {
private final IModel logoModel;
public LogoResource(IModel model) {
this.logoMod