As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
DettaglioFile df = (DettaglioFile) outParam.get("result"); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(df); oos.close(); Cache cache = new Cache(); cache.setNeverCache(false); cache.setMustRevalidate(true); cache.setMaxAge(0L); //res.setHeader("Content-Length", Long.toString(baos.size())); //res.setContentType("application/octet-stream"); //res.setCache(cache); res.getOutputStream().write(baos.toByteArray());