Filetransfer using SpiderMonkey

I haven’t found anything to transfer files directly in spidermonkey so far.
Is there somehting build in to do that, e.g. to update files when a client version is lower then current version, so client can get an update from server ?

If not what would be the easiest/best way to do this ?
From the top of my head i think along the lines to create a special message containing filename, path and a byte array. Server can read the file into that bytearray and client will write it back to filesystem on recieve. Just not sure if this wouldn’t cause problems on larger files.

Do updates using HTTP. Just store the files on the server and fetch the new one if its out of date.

Or use something like GetDown to do the whole process.

1 Like