I have developed a custom stage plugin and saved final zip file output as stream on the document being processed.
I have used both appendStream() and setStream method to add my final ouput which is ByteArrayInputStream.
This will act as input to my HCP-AW Connector plugin.
In my HCP-AW connector plugin write action, I am trying to retrieve my stream from stage plugin so that it can be uploaded to HCP Anywhere .In this case , i am trying to retrieve stream using openNamedStream method from PluginCallback, but its not able to write the stream into HCP Anywhere as the stream is corrupted.
What could be the reason ?