That is fine if it is a text file but will cause problems if the file contains unpredictable binary data.
Base64 encoding of binary files in DroidScript is difficult. I have not yet done it reliably.
Can you explain what you are trying to achieve, please.
It may be much easier to offer you a simpler transmissible format, especially if the file needs to be recreated at the end of the process using DroidScript.
If all the clients are using DroidScript, I would recommend bypassing Base64 and using app.CreateFile for both read and write.
The hex format available in app.CreateFile should be perfectly transmissible via the node server.
function OnStart()
{
// read contents of file
var fil = "/sdcard/Hello.png";
var file = app.CreateFile( fil, "r" );
var len = file.GetLength();
var data = file.ReadData( len,"hex" );
file.Close();
// display data
alert(data);
var data2 = data;
// write copy of file
var fil2 = "/sdcard/testout.png";
app.DeleteFile( fil2 );
var file2 = app.CreateFile( fil2, "rw" );
file2.Seek(0);
file2.WriteData(data2, "hex");
file2.Close();
}