Hello Community,
I have a requirement of storing XML file created by POJO using Java DOM API(javax.xml.transform.dom.DOMSource) to a Node in JCR repository. I would like to use, JcrUtils.putFile(currentNode, "fileName.xml", "application/xml", fileInputStream);
But I am unable to convert the DOMSource or StreamResult to FileInputStream, to pass on to JcrUtils.putFile method. Could you please suggest any ideas?
Any other approaches to complete this problem are also welcome.
I thank you in advance.
-Mahabub Ali Mohammad.