I think I’m going to need some more information here to be able to help you.
First of all, do you get any error messages from the monitor?
I can also see that you have commented out the lines related to the FileSystem code. Is that deliberate, or something done for testing?
Note that FileSystem.readBufferFromFile(FileSystem.dataDirectory + "/" + "kevin.jpg") will return a promise, and not an ArrayBuffer. You can use then to do something when the promise is resolved, see the docs for a small example.
Alternatively you can use the FileSystem.readBufferFromFileSync function, which will block the JS thread and return an ArrayBuffer.
Note that I’m not familiar with the Syncano API, so there might be something else going on here that I don’t see.
So Fuse does not support the nodejs standard lib, and if a library you’re using requires, say, fs or path, those modules will not be available. Providing polyfills for node would be great but it’s a really herculean task. If you can, yourself, provide fills for fs (using fuse filesystem) to cover syncano’s needs, that looks like it should solve this problem.
I’ve got the same problem with Syncano, trough my research I’ve found that “Syncano.file()” method is expecting the return of “fs.readFileSync()” that is a Buffer as this post said:
And “FileSystem.readBufferFromFile()” returns an ArrayBuffer
This is where my knowledge ends, I don’t know what a buffer is, nor an arraybuffer yet, I will continue reading but for now if we could contact Bolav to ask if he can think of a way to upload a file to syncano using fuse filesystem, that would be awesome
Ps. English is not my native language, if I said something wrong I apologize