title: JAVA: IO new File(filename) throwing "Can't read input file!"
body: <p>I'm trying to create a file from one server to another.
  Server A executes script which needs to create a file one server B. Server A has a script that creates folder without issues (no permission denied or anything) and call the following code after creating the folder:</p>
  
  <pre><code>byte[] btDataFile = new sun.misc.BASE64Decoder().decodeBuffer(base64);
  File of = new File("driverLetter:\folder_path\filename.png");
  FileOutputStream osf = new FileOutputStream(of);
  osf.write(btDataFile);
  osf.flush();
  </code></pre>
  
  <p>"base64" is a base64 string representation of a png image which I need to create as a file. The value of the string is quite long so I can't post it in here but it's there, not empty, not null, it has a value.
  But the code throws the error: </p>
  
  <pre><code>"Can't read input file!"
  </code></pre>
  
  <p>Why can the script read the "input file"?
  Thanks</p>