From d10043a2f94bb203845c0e1135c55ceb693ceffc Mon Sep 17 00:00:00 2001 From: Arthur Coolen <coolen@astron.nl> Date: Tue, 11 Jul 2006 13:33:21 +0000 Subject: [PATCH] BugID: 768 new way to create (and overwrite) files in upload pocess --- .../src/nl/astron/lofar/lofarutils/remoteFileAdapter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/remoteFileAdapter.java b/JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/remoteFileAdapter.java index aff03d6882f..ab6688cc660 100644 --- a/JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/remoteFileAdapter.java +++ b/JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/remoteFileAdapter.java @@ -73,9 +73,8 @@ public class remoteFileAdapter extends UnicastRemoteObject implements remoteFile boolean succes=false; if (buffer != null && aFileName.length() > 0) { try { - File file = new File(aFileName); - System.out.println("opening File: "+file.getName()); - BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(file)); + System.out.println("opening File: "+aFileName); + BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(aFileName)); System.out.println("Received buffer length: "+buffer.length); output.write(buffer,0,buffer.length); output.flush(); -- GitLab