node-smb2 icon indicating copy to clipboard operation
node-smb2 copied to clipboard

Could smb2 save images ?

Open rChinnnn opened this issue 5 years ago • 0 comments

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

rChinnnn avatar Mar 05 '19 08:03 rChinnnn