node-smb2
node-smb2 copied to clipboard
Could smb2 save images ?
I could connect to shared folder with smb2, doing readdir/readFile/writeFile ..etc all correctly.
But could smb2 save images like fs.writeFile?
My fs code : fs.writeFile("./public/images/imgFromNode.jpg", imgData, "binary", function (err) { ...
When I change fs.writeFile
to smb2Client.writeFile
, it could write jpg file into my path, but the file can't be open, the File size is also different.
What have I done wrong? Thanks