Possible effects of writing large byte arrays to an output stream?
    private static void writeData( byte[] file, HttpServletResponse response )
        throws IOException
    {
        ....
        // Send the data
        response.setContentLength(file.length);
        response.getOutputStream().write(file);
    }

Recently, I've found in IE8 that some connections close while requesting files to download. This is the relevant piece of source in code, and I was wondering if writing large byte arrays all at once to the response output stream could cause this issue. The issue is very much non-reproducible, and I've often seen the pattern of writing a certain number of bytes at a time, versus all at once, to avoid MTU issues, or something like that.

Could this code be responsible for my intermittent IE issues? If so, why, and why only in IE?
Possible effects of writing large byte arrays to an output stream?
===

    private static void writeData( byte[] file, HttpServletResponse response )
        throws IOException
    {
        ....
        // Send the data
        response.setContentLength(file.length);
        response.getOutputStream().write(file);
    }

Recently, I've found in IE8 that some connections close while requesting files to download. This is the relevant piece of source in code, and I was wondering if writing large byte arrays all at once to the response output stream could cause this issue. The issue is very much non-reproducible, and I've often seen the pattern of writing a certain number of bytes at a time, versus all at once, to avoid MTU issues, or something like that.

Could this code be responsible for my intermittent IE issues? If so, why, and why only in IE?