I have a requirement to convert com.wm.lang.xml.Document object to stream object using a Java service in Developer, any help would be appreciated.
Scenario: Partner is posting MIME data on to IS and the size of it is between 400 MB- 500 MB. Converting the incoming XML stream to document and document is not an option, since in this case the service xmlDocumentToString is throwing out of memory exception while parsing the incoming stream. I have written a Java service which will tell me what i am receiving in the Developer and that is com.wm.lang.xml.Document. Now i have to convert this object to a stream so that i can can later change to string and store it to a file system.
Thanks in advance.