diff --git a/JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/remoteFileAdapter.java b/JAVA/LofarUtils/src/nl/astron/lofar/lofarutils/remoteFileAdapter.java index aff03d6882fc8e9d178dfc9d6df2f683caf60cc4..ab6688cc660bf04857a528258c237e2c77d82bd0 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();