I am getting the content of an object which is returned as ByteArrayInputStream, and then I am assigning to another object, which accepts input as ByteArrayOutputStream. Can someone please suggest as how can I convert ByteArrayInputStream to ByteArrayOutputStream...
Here's my code:
ByteArrayInputStream b_input = source_object.getContent();
// how can I set the content of my target_object to the content of my source_object
target_object.setContent(<it accepts a ByteArrayOutputStream>)