# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- HttpClientHandler.java (Today 2:45:42 PM) +++ Current File @@ -421,7 +421,12 @@ public void writeRequest(OutputStream out) throws IOException { InputStream instream = new FileInputStream(file); try { - FileUtil.copy(instream, out, null, false); + // FileUtil.copy(instream, out, null, false); + int length; + byte[] buffer = new byte[64*1024]; + while ((length = instream.read(buffer)) != -1) { + out.write(buffer, 0, length); + } } finally { instream.close(); }