When I try to send large files from a GenericClient I often run into an
OutOfMemoryError.
Apparently the ByteUtils.write(InputStream, OutputStream) method wraps a
BufferedOutputStream around the OutputStream (why?)

As far as I know the HttpUrlConnection will also buffer the output in order to
determine Content-Length (unless using chunked encoding).
So maybe this cannot be avoided at all?

Could soemone shed some light on this problem?

Best regards,

- Mikkel

Reply via email to