public void write(MuleEvent event, OutputStream out) throws IOException { InputStream is = (InputStream) src; try { IOUtils.copyLarge(is, out); } finally { is.close(); } } };
public void write(MuleEvent event, OutputStream out) throws IOException { InputStream is = ((HttpServletRequest) src).getInputStream(); try { IOUtils.copyLarge(is, out); } finally { is.close(); } } };
IOUtils.copyLarge(in, baos); byte[] buffer = baos.toByteArray();
try IOUtils.copyLarge(is, byteOut);
IOUtils.copyLarge(is, os); os.flush(); os.close();
IOUtils.copyLarge(is, fos); is.close();
IOUtils.copyLarge(in, baos);