AnsweredAssumed Answered

Help With Version

Question asked by fedeparma on Jun 21, 2007
Hi how I Can get the content of a determinate Version?






Node nodo=this.getNodeVersion(idVersione);
Reference ref=nodo.getReference();

Content[] readResult=this.contentService.read(
                        new Predicate(new Reference[]
                                      {ref},ConstantsAlfresco.STORE,null),
                        Constants.PROP_CONTENT);

Content content=readResult[0];

InputStream is=ContentUtils.getContentAsInputStream(content);
byte[] contentFile=ContentUtils.convertToByteArray(is);


This is my code but it has an Exception because the URL of Content is null and the method content.getURL is used in the function getContentasInputStream

Thanks

Outcomes