Hi all,
I was looking at the Synchronet JavaScript API documentation for the File class:
http://www.synchro.net/docs/jsobjs.html#File
It says the File class has support for binary files and automatic Base64 decoding (among other features). It sounds to me like if I have some Base64-encoded data, I should be able to write that to a file using the File class and it will automatically decode it to binary format. I've tried opening a file with the mode "wb" (write binary) and using the write() method to write the Base64-encoded data. It's not decoding the data to binary though - it's just writing the Base64 string to the file. Might I be missing a step to get it to convert Base64 data to binary?
Basically my flow is this:
var B64Data = "some Base64-encoded data";
var destFile = new File("someFile.bin");
if (destFile.open("wb"))
{
destFile.write(B64Data);
destFile.close();
}
Set destFile.base64=true, other than that, looks right.

 Web-based telnet client
Web-based telnet client Telnet
Telnet RLogin
RLogin IRC
IRC Email & news access
Email & news access| Sysop: | Eric Oulashin | 
|---|---|
| Location: | Beaverton, Oregon, USA | 
| Users: | 102 | 
| Nodes: | 16 (0 / 16) | 
| Uptime: | 10:34:29 | 
| Calls: | 7,035 | 
| Files: | 8,559 | 
| D/L today: | 166  				files (19,550K bytes) | 
| Messages: | 369,891 |