On Mon, 2011-08-22 at 21:48 -0500, Jonathan Monette wrote: > Yes as a matter of fact. The output files of the app that was failing are both 2.6GB. That was the problem then: - int read = remoteStream.read(buf, 0, Math.min(buf.length, (int) (total - crt))); + int read = remoteStream.read(buf, 0, (int) Math.min(buf.length, total - crt));