decebal
unread,Aug 20, 2009, 10:21:06 AM8/20/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jcrom
Hello,
My first question is how can I read the content of a JcrFileNode
property (@JcrFileNode private JcrFile xmlFile;)?
I use this code for write to jcr:
JcrFile xmlFile = new JcrFile();
xmlFile.setName("xmlFile");
xmlFile.setLastModified(Calendar.getInstance());
xmlFile.setPath(StorageUtil.createPath(reportContent.getPath(),
"xmlFile"));
xmlFile.setMimeType(upload.getContentType());
xmlFile.setDataProvider(new JcrDataProviderImpl(TYPE.STREAM,
upload.getInputStream()));
reportContent.setXmlFile(xmlFile);
Another problem is that JcrFile is Serailizable (ok) but
JcrDataProviderImpl (contains a InputStream, ...) is not Serializable
and I want to use my entity (contains only a xml file property) as a
DTO.
Thanks,
Decebal