Hello Michael,
So I missed the trailing slash, very good point. However, if I forget this slash when I copy-paste on a local directory, I get "funcall-interactively: File is a directory: c:/blabla/tmp", which seems more reasonable than a base64 error.
So I re-did the test with the trailing slash, and it does work, indeed.
I also noticed that, when tramp-inline-compress-start-size is *not* nil, the error only appears on certain files : the copy works well on others. That's why I suspect an encoding error. To make my point, I ran the test on two different files : Main.js and file1.txt. On file1.txt (only text), the copy-paste works. On Main.js (JS file), the copy-paste fails.
In detail, here are the two scenarii I ran:
Scenario 1, No compression (everything works fine - see "no-compression-log"):
(setq tramp-verbose 10)
(setq tramp-inline-compress-start-size nil)
(copy-file "c:/Users/gde3/Documents/tmp/file1.txt" "/plink:nxuser@vdemopro892dsy|su:root@vdemopro892dsy:/home/data/RTV/DEMOR421/apache-tomcat/webapps/3DSpace/webapps/test/")
(copy-file "c:/Users/gde3/Documents/BTWW-Widgets-4-3DSpace-master/Widgets/UM5GraphVue/scripts/Main.js" "/plink:nxuser@vdemopro892dsy|su:root@vdemopro892dsy:/home/data/RTV/DEMOR421/apache-tomcat/webapps/3DSpace/webapps/test/")
Scenario 2, with compression (the second copy fails - "with-compression-log)
(setq tramp-verbose 10)
(copy-file "c:/Users/gde3/Documents/tmp/file1.txt" "/plink:nxuser@vdemopro892dsy|su:root@vdemopro892dsy:/home/data/RTV/DEMOR421/apache-tomcat/webapps/3DSpace/webapps/test/")
(copy-file "c:/Users/gde3/Documents/BTWW-Widgets-4-3DSpace-master/Widgets/UM5GraphVue/scripts/Main.js" "/plink:nxuser@vdemopro892dsy|su:root@vdemopro892dsy:/home/data/RTV/DEMOR421/apache-tomcat/webapps/3DSpace/webapps/test/")