Skip to content
Snippets Groups Projects
Commit d10043a2 authored by Arthur Coolen's avatar Arthur Coolen
Browse files

BugID: 768

new way to create (and overwrite) files in upload pocess
parent 69c42772
No related branches found
No related tags found
No related merge requests found
...@@ -73,9 +73,8 @@ public class remoteFileAdapter extends UnicastRemoteObject implements remoteFile ...@@ -73,9 +73,8 @@ public class remoteFileAdapter extends UnicastRemoteObject implements remoteFile
boolean succes=false; boolean succes=false;
if (buffer != null && aFileName.length() > 0) { if (buffer != null && aFileName.length() > 0) {
try { try {
File file = new File(aFileName); System.out.println("opening File: "+aFileName);
System.out.println("opening File: "+file.getName()); BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(aFileName));
BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(file));
System.out.println("Received buffer length: "+buffer.length); System.out.println("Received buffer length: "+buffer.length);
output.write(buffer,0,buffer.length); output.write(buffer,0,buffer.length);
output.flush(); output.flush();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment